import { Input, Menu, Dropdown, Icon, List, Avatar, Button, Carousel, Select, notification } from 'antd';
import React, { useState, useRef, useEffect } from 'react';
import { usenowDate } from '../util/util';


var storage = window.localStorage;

export function use_wlfl_treedata() {
  return [

  ];

}

//物料分类column
export function use_wlfl_initcolmun() {
  return [{ show: true,ellipsis: true, title: "序号", key: "xuhao", dataIndex: "xuhao", width: 120 },
  { show: true,ellipsis: true, title: "一级分类", key: "yjflmc", dataIndex: "yjflmc", width: 120 },
  { show: true,ellipsis: true, title: "二级分类", key: "ejflmc", dataIndex: "ejflmc", width: 120 },
  { show: true,ellipsis: true, title: "三级分类", key: "sjflmc", dataIndex: "sjflmc", width: 120 },
  { show: true,ellipsis: true, title: "分类编码", key: "flbm", dataIndex: "flbm", width: 120 },
  { show: true,ellipsis: true, title: "分类名称", key: "flmc", dataIndex: "flmc" },
  ]
}

/**
 * 
 * @returns  物料分类
 */
export function use_wlfl_old_initformdata() {
  var initformdata = {
    wlfl_title: { ifdb: false, bt: false, value: "", title: '物料分类', dataIndex: 'wlfl_title', inputType: "title_item" },
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    flmc: { ifdb: true, bt: true, value: "", title: '分类名称', dataIndex: 'flmc', inputType: "input_item", },
    flbm: { ifdb: true, bt: true, value: "", title: '分类编码', dataIndex: 'flbm', inputType: "input_item", },
    sjflmc: {
      ifdb: true, bt: true, value: "", title: '上级分类', dataIndex: 'sjflmc', inputType: "tree_select_item",
      selectdata: [], lineheight: "1.8rem", customlinewidth: "49%"

    },
    sjflid: { ifdb: true, bt: false, value: "", title: '上级id', dataIndex: 'sjflid', inputType: "none", },
    sjflbm: { ifdb: true, bt: false, value: "", title: '上级编码', dataIndex: 'sjflbm', inputType: "none", },

    ms: { ifdb: true, bt: false, value: "", title: '描述', dataIndex: 'ms', inputType: "input_text_item", },

  }
  return initformdata
}


/**
 * 
 * @returns  物料分类
 */
export function use_wlfl_initformdata() {
  var initformdata = {
    djxx_title: { ifdb: false, bt: false, value: "", title: '单据信息', dataIndex: 'djxx_title', inputType: "title_item" },
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "readonly" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    yjfl_title: { ifdb: false, bt: false, value: "", title: '一级分类', dataIndex: 'yjfl_title', inputType: "title_item" },
    yjflmc: {
      ifdb: true, bt: false, value: "", title: '一级分类名称', dataIndex: 'yjflmc',
      inputType: "select_item_new",
      datas_key: "yjfl_selectdata",
      popup_tansferarr: [
        { origin: "yjflmc", target: "yjflmc" },
        { origin: "yjflbm", target: "yjflbm" },
      ]
    },
    yjflbm: { ifdb: true, bt: false, value: "", title: '一级分类编码', dataIndex: 'yjflbm', inputType: "readonly" },

    ejfl_title: { ifdb: false, bt: false, value: "", title: '二级分类', dataIndex: 'ejfl_title', inputType: "title_item" },
    ejflmc: {
      ifdb: true, bt: false, value: "", title: '二级分类名称', dataIndex: 'ejflmc',
      inputType: "select_item_new",
      datas_key: "ejfl_selectdata",
      popup_tansferarr: [
        { origin: "ejflmc", target: "ejflmc" },
        { origin: "ejflbm", target: "ejflbm" },
      ]
    },
    ejflbm: { ifdb: true, bt: false, value: "", title: '二级分类编码', dataIndex: 'ejflbm', inputType: "readonly" },
    sjfl_title: { ifdb: false, bt: false, value: "", title: '三级分类', dataIndex: 'sjfl_title', inputType: "title_item" },
    sjflmc: { ifdb: true, bt: false, value: "", title: '三级分类名称', dataIndex: 'sjflmc', inputType: "input_item" },
    sjflbm: { ifdb: true, bt: false, value: "", title: '三级分类编码', dataIndex: 'sjflbm', inputType: "readonly" },

    flxx_title: { ifdb: false, bt: false, value: "", title: '分类信息', dataIndex: 'flxx_title', inputType: "title_item" },

    flmc: { ifdb: true, bt: false, value: "", title: '分类名称', dataIndex: 'flmc', inputType: "readonly" },
    flbm: { ifdb: true, bt: false, value: "", title: '分类编码', dataIndex: 'flbm', inputType: "readonly" },
    sfjy: {
      ifdb: true, bt: false, value: "否", title: '是否禁用', dataIndex: 'sfjy', inputType: "select_item",
      selectdata: [{ value: '是', label: '是' }, { value: '否', label: '否' }]
    },
    xgid_title: { ifdb: false, bt: false, value: "", title: '相关id', dataIndex: 'xgid_title', inputType: "title_item" },
    yjid: { ifdb: true, bt: false, value: "", title: '一级id', dataIndex: 'yjid', inputType: "readonly" },
    ejid: { ifdb: true, bt: false, value: "", title: '二级id', dataIndex: 'ejid', inputType: "readonly" },
    sjid: { ifdb: true, bt: false, value: "", title: '三级id', dataIndex: 'sjid', inputType: "readonly" },
  }
  return initformdata
}

/**
 * 
 * @returns 物料档案colmun
 */
export function use_wlda_initcolmun() {
  return [{ show: true,ellipsis: true, title: "序号", key: "xuhao", dataIndex: "xuhao", width: 120, fixed: "left" },
  // { show: true,ellipsis: true, title: "创建时间", key: "create_time", dataIndex: "create_time", width: 120, style: { fontSize: "0.6rem" }, fixed: "left" },
  // { show: true,ellipsis: true, title: "创建人", key: "create_by", dataIndex: "create_by", width: 120, style: { fontSize: "0.6rem" }, fixed: "left" },
  { show: true,ellipsis: true, title: "物料编码", key: "wlbm", dataIndex: "wlbm", width: 120, style: { fontSize: "0.6rem" }, fixed: "left" },
  { show: true,ellipsis: true, title: "物料名称", key: "wlmc", dataIndex: "wlmc", width: 120, style: { fontSize: "0.6rem" }, fixed: "left" },
  { show: true,ellipsis: true, title: "规格型号", key: "ggxh", dataIndex: "ggxh", width: 120, style: { fontSize: "0.6rem" }, fixed: "left" },
  { show: true,ellipsis: true, title: "类别", key: "lbbm", width: "4rem", style: { fontSize: "0.6rem" } },

  { show: true,ellipsis: true, title: "原物料编码", key: "ywlbm", dataIndex: "ywlbm", width: 120, style: { fontSize: "0.6rem" } },

  { show: true,ellipsis: true, title: "单位", key: "dw", dataIndex: "dw", width: 120 },
  { show: true,ellipsis: true, title: "启用", key: "sfqy", dataIndex: "sfqy", width: 120  },
  { show: true,ellipsis: true, title: "附件", key: "fj", dataIndex: "fj", rendertype: "img" },
  ]
}

/**
 * 
 * @param {*} 物料档案formdata 
 * @returns 
 */
export function use_wlda_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    // djxx_title: { ifdb: false, bt: false, value: "", title: '单据信息', dataIndex: 'djxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "none", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "none", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "none", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "none", disabled: true },
    wlxx_title: { ifdb: false, bt: false, value: "", title: '物料信息', dataIndex: 'wlxx_title', inputType: "title_item" },

    lbmc: {
      ifdb: true, bt: true, value: "", title: '类别', dataIndex: 'lbmc', inputType: "tree_select_item",
      selectdata: [], lineheight: "1.8rem",
    },
    lbid: { ifdb: true, bt: false, value: "", title: '类别id', dataIndex: 'lbid', inputType: "none", },
    lbbm: { ifdb: true, bt: false, value: "", title: '类别编码', dataIndex: 'lbbm', inputType: "readonly", },

    wlmc: { ifdb: true, bt: true, value: "", title: '物料名称', dataIndex: 'wlmc', inputType: "input_item", },
    ggxh: { ifdb: true, bt: true, value: "", title: '规格型号', dataIndex: 'ggxh', inputType: "input_item", },
    // ywlbm: { ifdb: true, bt: true, value: "", title: '原物料编码', dataIndex: 'ywlbm', inputType: "input_item", },

    wlbm: { ifdb: true, bt: false, value: "", title: '物料编码', dataIndex: 'wlbm', inputType: "readonly", placeholder: "自动生成" },
    dw: {
      ifdb: true, bt: true, value: "", title: '单位', dataIndex: 'dw', inputType: "select_item_new", datas_key: 'dict_dw',
      width: '5vw',
      popup_tansferarr: [
        { origin: "label", target: "dw" },
      ],
    },
    // fdw: { ifdb: true, bt: false, value: "", title: '辅单位', dataIndex: 'fdw', inputType: "input_item", },
    // bb: {
    //   ifdb: true, bt: false, value: "人民币", title: '币别', dataIndex: 'bb', inputType: "select_item",
    //   selectdata: [
    //     { value: '人民币', label: "人民币" }, { value: '美元', label: "美元" },]
    // },
    aqkc: { ifdb: true, bt: false, value: "", title: '安全库存', dataIndex: 'aqkc', inputType: "input_number_item", },
    sfqy: {
      ifdb: true, bt: true, value: "已启用", title: '是否启用', dataIndex: 'sfqy', inputType: "select_item",
      disabled: "true",
      selectdata: [
        { value: '已启用', label: "已启用" }, { value: '已禁用', label: "已禁用" },]
    },
    bz: { ifdb: true, bt: false, value: "", title: '备注', dataIndex: 'bz', inputType: "input_text_item", lineheight: "6.5rem" },
    fj: {
      ifdb: true, bt: false, value: "", title: '附件', dataIndex: 'fj', inputType: "upload_item",
      oneline: "true", lineheight: "6.5rem"
    },

    kzxx_title: { ifdb: false, bt: false, value: "", title: '业务属性', dataIndex: 'kzxx_title', inputType: "title_item" },
    kzsx: {
      ifdb: true, bt: true, value: ['允许采购', '允许销售', '允许生产', '允许库存'],
      title: '控制属性', dataIndex: 'kzsx', inputType: "checkbox_item",
      oneline: "true", lineheight: "1.8rem",
      selectdata: [
        { value: '允许采购', label: "允许采购" }, { value: '允许销售', label: "允许销售" },
        { value: '允许生产', label: "允许生产" }, { value: '允许库存', label: "允许库存" }]
    },

    // tj_title: { ifdb: false, bt: false, value: "", title: '体积信息', dataIndex: 'tj_title', inputType: "title_item" },
    // cd: { ifdb: true, bt: false, value: "", title: '长度', dataIndex: 'cd', inputType: "input_number_item", },
    // kd: { ifdb: true, bt: false, value: "", title: '宽度', dataIndex: 'kd', inputType: "input_number_item", },
    // hd: { ifdb: true, bt: false, value: "", title: '厚度', dataIndex: 'hd', inputType: "input_number_item", },
    // sl1: { ifdb: false, bt: false, value: "", title: '', dataIndex: 'sl1', inputType: "space_line", },
    // tj: { ifdb: true, bt: false, value: "", title: '体积', dataIndex: 'tj', inputType: "input_number_item", },
    // ccdw: { ifdb: true, bt: false, value: "", title: '尺寸单位', dataIndex: 'ccdw', inputType: "input_item", },
    // zl_title: { ifdb: false, bt: false, value: "", title: '重量信息', dataIndex: 'zl_title', inputType: "title_item" },
    // mz: { ifdb: true, bt: false, value: "", title: '毛重', dataIndex: 'mz', inputType: "input_number_item", },
    // jz: { ifdb: true, bt: false, value: "", title: '净重', dataIndex: 'jz', inputType: "input_number_item", },
    // zldw: { ifdb: true, bt: false, value: "", title: '重量单位', dataIndex: 'zldw', inputType: "input_item", },

  }
  return initformdata
}

/**
 * 
 * @returns 物料档案mxlist columm
 */
export function use_wlda_mx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "80px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: storage.ygxm, value: "", title: 'create_by', dataIndex: 'create_by', inputType: "none" },
    { ifdb: true, bt: true, defalut_v: "", value: "", title: '版本号', dataIndex: 'bbh', inputType: "input_item" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '启用人', dataIndex: 'qyr', inputType: "input_item", disabled: true },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '启用时间', dataIndex: 'qysj', inputType: "date_item", disabled: true },
    {
      ifdb: true, bt: true, defalut_v: "", value: "", title: '是否启用', dataIndex: 'sfqy', inputType: "select_item",
      selectdata: [
        { value: '是', label: "是" }, { value: '否', label: "否" },]

    },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '备注说明', dataIndex: 'bzsm', inputType: "input_item" },
  ]
  return colmuns
}

/**
 * 
 * @returns 供应商档案colmun
 */
export function use_gys_initcolmun() {
  return [
  { show: true,ellipsis: true,dataIndex: "xuhao", title: "序号", key: "xuhao", width: 63 },  
  { show: true,ellipsis: true,dataIndex: "gysmc", title: "供应商名称", key: "gysmc",width: 174},
  { show: true,ellipsis: true,dataIndex: "erpdm", title: "ERP代码", key: "erpdm",width: 87},
  { show: true,ellipsis: true,dataIndex: "gysdm", title: "供应商编码", key: "gysdm",width: 100},
  { show: true,ellipsis: true,dataIndex: "ghcp", title: "供货产品", key: "ghcp",width: 150},
  { show: true,ellipsis: true,dataIndex: "lxr", title: "联系人", key: "lxr",width: 81},
  { show: true,ellipsis: true,dataIndex: "sj", title: "手机", key: "sj",width: 100 },
  { show: true,ellipsis: true,dataIndex: "gsdz", title: "公司地址", key: "gsdz",width: 135},
  { show: true,ellipsis: true,dataIndex: "fkfs", title: "付款方式", key: "fkfs",width: 116},
  { show: true,ellipsis: true,dataIndex: "dj", title: "等级", key: "dj",width: 62},
  { show: true,ellipsis: true,dataIndex: "hzzt", title: "合作状态", key: "hzzt"},
  // { show: true,ellipsis: true,dataIndex: "zxpjdf", title: "最新评分", key: "zxpjdf",width: 100},
  // { show: true,ellipsis: true,dataIndex: "schzsj", title: "最新合作时间", key: "schzsj"},
  ]
}

/**
 * 
 * @returns 供应商档案colmun
 */
export function use_gys_initcolmun_import() {
  return [
  { show: true,ellipsis: true,dataIndex: "xuhao", title: "序号", key: "xuhao", width: 63 },  
  { show: true,ellipsis: true,dataIndex: "gysmc", title: "供应商名称", key: "gysmc",width: 174},
  { show: true,ellipsis: true,dataIndex: "erpdm", title: "ERP代码", key: "erpdm",width: 87},
  // { show: true,ellipsis: true,dataIndex: "xysbdm", title: "社会信用代码", key: "erpdm",width: 87},
  { show: true,ellipsis: true,dataIndex: "ghcp", title: "供货产品", key: "ghcp",width: 150},
  { show: true,ellipsis: true,dataIndex: "lxr", title: "联系人", key: "lxr",width: 81},
  { show: true,ellipsis: true,dataIndex: "sj", title: "手机", key: "sj",width: 100 },
  { show: true,ellipsis: true,dataIndex: "gsdz", title: "公司地址", key: "gsdz",width: 135},
  { show: true,ellipsis: true,dataIndex: "fkfs", title: "付款方式", key: "fkfs",width: 116},
  { show: true,ellipsis: true,dataIndex: "dj", title: "等级", key: "dj",width: 62},
  // { show: true,ellipsis: true,dataIndex: "hzzt", title: "合作状态", key: "hzzt"},
  // { show: true,ellipsis: true,dataIndex: "zxpjdf", title: "最新评分", key: "zxpjdf",width: 100},
  // { show: true,ellipsis: true,dataIndex: "schzsj", title: "最新合作时间", key: "schzsj"},
  ]
}

/**
 * 
 * @param {*} 供应商档案formdata 
 * @returns 
 */
export function use_gys_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    // dj_title: { ifdb: false, bt: false, value: "", title: '单据信息', dataIndex: 'dj_title', inputType: "title_item" },
    // create_by: { ifdb: true, bt: true, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    // create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    // update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    // update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    gys_title: { ifdb: false, bt: false, value: "", title: '基本信息', dataIndex: 'gys_title', inputType: "title_item" },
    gysmc: { ifdb: true, bt: true, value: "", title: '供应商名称', dataIndex: 'gysmc', inputType: "input_item" },
    hzzt: { ifdb: true, bt: true, value: storage.yhlx=="租户用户"?"准入中":"", title: '合作状态', dataIndex: 'hzzt', inputType: "select_item_new",disabled:storage.yhlx=="租户用户",
      datas_key: 'dict_hzzt',
      popup_tansferarr: [
        { origin: "label", target: "hzzt" },
      ],
    },
    erpdm: { ifdb: true, bt: false, value: "", title: 'ERP代码', dataIndex: 'erpdm', inputType: "input_item" },
    ghcp: { ifdb: true, bt: false, value: "", title: '供货产品', dataIndex: 'ghcp', inputType: "input_item" },
    lxr: { ifdb: true, bt: false, value: "", title: '联系人', dataIndex: 'lxr', inputType: "input_item" },
    sj: { ifdb: true, bt: false, value: "", title: '手机', dataIndex: 'sj', inputType: "input_item" },
    gsdz: { ifdb: true, bt: false, value: "", title: '公司地址', dataIndex: 'gsdz', inputType: "input_item" },
    fkfs: { ifdb: true, bt: false, value: "", title: '付款方式', dataIndex: 'fkfs', inputType: "input_item" },
    dj: { ifdb: true, bt: false, value: "", title: '等级', dataIndex: 'dj', inputType: "input_item" },
    gysjj: { ifdb: true, bt: false, value: "", title: '供应商简介', dataIndex: 'gysjj', inputType: "input_text_item" },

    gysdcbmb: { ifdb: false, bt: false, value: "供应商调查表.docx", title: '供应商调查表模板', dataIndex: 'gysdcbmb', inputType: "view_fj_item",style:{height:"2.4rem"} },
    gysdcb:{ifdb:true,bt:false,value:"",title:"供应商调查表",dataIndex:"gysdcb",inputType:"upload_fj_item",style:{height:"2.4rem"}},
    shxx_title: { ifdb: false, bt: false, value: "", title: '税务信息', dataIndex: 'shxx_title', inputType: "title_item" },
    sh: { ifdb: true, bt: false, value: "", title: '税号', dataIndex: 'sh', inputType: "input_item" },
    khh: { ifdb: true, bt: false, value: "", title: '开户行', dataIndex: 'khh', inputType: "input_item" },
    yhzh: { ifdb: true, bt: false, value: "", title: '银行账号', dataIndex: 'yhzh', inputType: "input_item" },
    zzfp: { ifdb: true, bt: false, value: "", title: '该公司是否可以开增值税发票', dataIndex: 'zzfp', inputType: "input_item" },
    jxsl: { ifdb: true, bt: false, value: "", title: '进项税率', dataIndex: 'jxsl', inputType: "input_item" },

    zzxx_title: { ifdb: false, bt: false, value: "", title: '证照信息', dataIndex: 'zzxx_title', inputType: "title_item" },
    yyzz: { ifdb: true, bt: true, value: "", title: '营业执照', dataIndex: 'yyzz', inputType: "upload_fj_item",style:{height:"2.4rem"} },
    
    xysbdm: { ifdb: true, bt: false, value: "", title: '社会信用代码', dataIndex: 'xysbdm', inputType: "input_item" },
    // bfdw: { ifdb: true, bt: false, value: "", title: '颁发单位', dataIndex: 'bfdw', inputType: "input_item" },

    // zzyxqks: { ifdb: true, bt: false, value: "", title: '执照有效期开始', dataIndex: 'zzyxqks', inputType: "date_item" },

    // zzyxqjs: { ifdb: true, bt: false, value: "", title: '有效期结束', dataIndex: 'zzyxqjs', inputType: "date_item" },
    fzsfz: { ifdb: true, bt: false, value: "", title: '法人身份证正反面', dataIndex: 'fzsfz', inputType: "upload_fj_item",style:{height:"2.4rem"} },
    // sfzyxqks: { ifdb: true, bt: false, value: "", title: '身份证有效期开始', dataIndex: 'sfzyxqks', inputType: "date_item" },
    // sfzyxqjs: { ifdb: true, bt: false, value: "", title: '身份证有效期结束', dataIndex: 'sfzyxqjs', inputType: "date_item" },
    gysdm: { ifdb: true, bt: false, value: "", title: '供应商编码', dataIndex: 'gysdm', inputType: "none" },
    gyswhzt: { ifdb: true, bt: false, value: "", title: '供应商维护状态', dataIndex: 'gyswhzt', inputType: "none" },
    lhyy: { ifdb: true, bt: false, value: "", title: '拉黑原因', dataIndex: 'lhyy', inputType: "none" },
    lhrq: { ifdb: true, bt: false, value: "", title: '拉黑日期', dataIndex: 'lhrq', inputType: "none" },
    

  }
  return initformdata
}


/**
 * 
 * @param {*} 供应商档案formdata 
 * @returns 
 */
export function use_gys_view_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    // dj_title: { ifdb: false, bt: false, value: "", title: '单据信息', dataIndex: 'dj_title', inputType: "title_item" },
    // create_by: { ifdb: true, bt: true, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    // create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    // update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    // update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    gys_title: { ifdb: false, bt: false, value: "", title: '基本信息', dataIndex: 'gys_title', inputType: "title_item" },
    gysmc: { ifdb: true, bt: false, value: "", title: '供应商名称', dataIndex: 'gysmc', inputType: "view_item" },
    hzzt: { ifdb: true, bt: true, value: "", title: '合作状态', dataIndex: 'hzzt', inputType: "view_item"},
    erpdm: { ifdb: true, bt: false, value: "", title: 'ERP代码', dataIndex: 'erpdm', inputType: "view_item" },
    ghcp: { ifdb: true, bt: false, value: "", title: '供货产品', dataIndex: 'ghcp', inputType: "view_item" },
    lxr: { ifdb: true, bt: false, value: "", title: '联系人', dataIndex: 'lxr', inputType: "view_item" },
    sj: { ifdb: true, bt: false, value: "", title: '手机', dataIndex: 'sj', inputType: "view_item" },
    gsdz: { ifdb: true, bt: false, value: "", title: '公司地址', dataIndex: 'gsdz', inputType: "view_item" },
    fkfs: { ifdb: true, bt: false, value: "", title: '付款方式', dataIndex: 'fkfs', inputType: "view_item" },
    dj: { ifdb: true, bt: false, value: "", title: '等级', dataIndex: 'dj', inputType: "view_item" },
    
    gysjj: { ifdb: true, bt: false, value: "", title: '供应商简介', dataIndex: 'gysjj', inputType: "view_item" },

    gysdcbmb: { ifdb: false, bt: false, value: "供应商调查表.docx", title: '供应商调查表模板', dataIndex: 'gysdcbmb', inputType: "view_fj_item",style:{height:"2.4rem"} },
    gysdcb:{ifdb:true,bt:false,value:"",title:"供应商调查表",dataIndex:"gysdcb",inputType:"view_fj_item",style:{height:"2.4rem"}},
    shxx_title: { ifdb: false, bt: false, value: "", title: '税务信息', dataIndex: 'shxx_title', inputType: "title_item" },
    sh: { ifdb: true, bt: false, value: "", title: '税号', dataIndex: 'sh', inputType: "view_item" },
    khh: { ifdb: true, bt: false, value: "", title: '开户行', dataIndex: 'khh', inputType: "view_item" },
    yhzh: { ifdb: true, bt: false, value: "", title: '银行账号', dataIndex: 'yhzh', inputType: "view_item" },
    zzfp: { ifdb: true, bt: false, value: "", title: '该公司是否可以开增值税发票', dataIndex: 'zzfp', inputType: "view_item" },
    jxsl: { ifdb: true, bt: false, value: "", title: '进项税率', dataIndex: 'jxsl', inputType: "view_item" },

    zzxx_title: { ifdb: false, bt: false, value: "", title: '证照信息', dataIndex: 'zzxx_title', inputType: "title_item" },
    yyzz: { ifdb: true, bt: true, value: "", title: '营业执照', dataIndex: 'yyzz', inputType: "view_fj_item",style:{height:"2.4rem"} },
    
    xysbdm: { ifdb: true, bt: false, value: "", title: '社会信用代码', dataIndex: 'xysbdm', inputType: "view_item" },
    // bfdw: { ifdb: true, bt: false, value: "", title: '颁发单位', dataIndex: 'bfdw', inputType: "input_item" },

    // zzyxqks: { ifdb: true, bt: false, value: "", title: '执照有效期开始', dataIndex: 'zzyxqks', inputType: "date_item" },

    // zzyxqjs: { ifdb: true, bt: false, value: "", title: '有效期结束', dataIndex: 'zzyxqjs', inputType: "date_item" },
    fzsfz: { ifdb: true, bt: false, value: "", title: '法人身份证正反面', dataIndex: 'fzsfz', inputType: "view_fj_item",style:{height:"2.4rem"} },
    // sfzyxqks: { ifdb: true, bt: false, value: "", title: '身份证有效期开始', dataIndex: 'sfzyxqks', inputType: "date_item" },
    // sfzyxqjs: { ifdb: true, bt: false, value: "", title: '身份证有效期结束', dataIndex: 'sfzyxqjs', inputType: "date_item" },
    gysdm: { ifdb: true, bt: false, value: "", title: '供应商编码', dataIndex: 'gysdm', inputType: "none" },
    gyswhzt: { ifdb: true, bt: false, value: "", title: '供应商维护状态', dataIndex: 'gyswhzt', inputType: "none" },
    lhyy: { ifdb: true, bt: false, value: "", title: '拉黑原因', dataIndex: 'lhyy', inputType: "none" },
    lhrq: { ifdb: true, bt: false, value: "", title: '拉黑日期', dataIndex: 'lhrq', inputType: "none" },
    

  }
  return initformdata
}


/**
 * 
 * @returns 供应商供货能力明细mxlist columm
 */
export function use_gys_ghmx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "61px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'mainid', dataIndex: 'mainid', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: storage.ygxm, value: "", title: 'create_by', dataIndex: 'create_by', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '供货类型', dataIndex: 'ghlx', inputType: "select_item_new",
      datas_key: 'data_ejfl',
      popup_tansferarr: [
        { origin: "label", target: "ghlx" },
        { origin: "wlbm", target: "ghbm" },
      ],
    },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '供货编码', dataIndex: 'ghbm', inputType: "input_item",disabled: true },
   { ifdb: true, bt: false, defalut_v: "",value: "", title: '物料名称', dataIndex: 'wlmc', inputType: "input_item" },
   { ifdb: true, bt: false, defalut_v: "",value: "", title: '年产能', dataIndex: 'ncn', inputType: "input_number_item" },
   { ifdb: true, bt: false, defalut_v: "",value: "", title: '备注', dataIndex: 'bz', inputType: "input_item" },
  
  
  ]
  return colmuns
}


/**
 * 
 * @returns 供应商资质证书明细mxlist columm
 */
export function use_gys_zzsz_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "61px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'mainid', dataIndex: 'mainid', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: storage.ygxm, value: "", title: 'create_by', dataIndex: 'create_by', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '资料名称', dataIndex: 'zsmc', inputType: "readonly",
      datas_key: 'dict_zsmc',
      popup_tansferarr: [
        { origin: "label", target: "zsmc" },
      ],
    },
    // { ifdb: true, bt: false, defalut_v: "",value: "", title: '资质名称', dataIndex: 'zzmc', inputType: "select_item_new",
    //   datas_key: 'dict_zzmc',
    //   popup_tansferarr: [
    //     { origin: "label", target: "zzmc" },
    //   ],
    // },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '证书编号', dataIndex: 'zsbh', inputType: "input_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '颁发单位', dataIndex: 'bfdw', inputType: "input_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '有效期开始', dataIndex: 'yxqks', inputType: "date_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '有效期结束', dataIndex: 'yxqjs', inputType: "date_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '附件上传', dataIndex: 'fjsc',width:"20rem", inputType: "upload_fj_item" },
   
  ]
  return colmuns
}
  



/**
 * 
 * @returns 供应商授权明细mxlist columm
 */
export function use_gys_sqmx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "61px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'mainid', dataIndex: 'mainid', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: storage.ygxm, value: "", title: 'create_by', dataIndex: 'create_by', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '联系人', dataIndex: 'lxr', inputType: "input_item" },
{ ifdb: true, bt: false, defalut_v: "",value: "", title: '部门', dataIndex: 'bm', inputType: "input_item" },
{ ifdb: true, bt: false, defalut_v: "",value: "", title: '职务', dataIndex: 'zw', inputType: "input_item" },
{ ifdb: true, bt: false, defalut_v: "",value: "", title: '联系电话', dataIndex: 'lxdh', inputType: "input_item" },
{ ifdb: true, bt: false, defalut_v: "",value: "", title: '电子邮件', dataIndex: 'dzyj', inputType: "input_item" },
{ ifdb: true, bt: false, defalut_v: "",value: "", title: '授权书', dataIndex: 'sqs',width:"20rem", inputType: "upload_fj_item" },


   
   
  ]
  return colmuns
}


/**
 * 
 * @returns 供应商银行明细mxlist columm
 */
export function use_gys_yhmx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "61px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'mainid', dataIndex: 'mainid', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: storage.ygxm, value: "", title: 'create_by', dataIndex: 'create_by', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '标识类型', dataIndex: 'bslx', inputType: "select_item_new" ,
      datas_key: 'dict_bslx',
      popup_tansferarr: [
        { origin: "label", target: "bslx" },
      ],
    },
   { ifdb: true, bt: false, defalut_v: "",value: "", title: '银行名称', dataIndex: 'yhmc', inputType: "input_item" },
   { ifdb: true, bt: false, defalut_v: "",value: "", title: '银行账户', dataIndex: 'yhzh', inputType: "input_item" },
   { ifdb: true, bt: false, defalut_v: "",value: "", title: '账户持有人', dataIndex: 'zhcyr', inputType: "input_item" },
  

   
   
  ]
  return colmuns
}
  
  

/**
 * 
 * @returns 供应商考评明细mxlist columm
 */
export function use_gys_kpmx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "61px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'mainid', dataIndex: 'mainid', inputType: "none" },
    
    { ifdb: true, bt: false, defalut_v: usenowDate(),value: usenowDate(), title: '考评周期起', dataIndex: 'kpzqq', inputType: "date_item" },
    { ifdb: true, bt: false, defalut_v: usenowDate(),value: usenowDate(), title: '考评周期止', dataIndex: 'kpzqz', inputType: "date_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '质量', dataIndex: 'zl', inputType: "input_number_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '交付', dataIndex: 'jf', inputType: "input_number_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '投诉处理', dataIndex: 'tscl', inputType: "input_number_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '服务', dataIndex: 'fw', inputType: "input_number_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '月度得分', dataIndex: 'yddf', inputType: "input_number_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '评定等级', dataIndex: 'pddj', inputType: "select_item_new",disabled: true,
      datas_key: 'dict_pddj',
      popup_tansferarr: [
        { origin: "label", target: "pddj" },
      ],
    },
   
  

   
   
  ]
  return colmuns
}
  




/**
 * 
 * @returns 供应商评价记录colmun
 */
export function use_gyspj_initcolmun() {
  return [
  { show: true,ellipsis: true,dataIndex: "xuhao", title: "序号", key: "xuhao", width: 67 },  
  { show: true,ellipsis: true,dataIndex: "gysmc", title: "供应商名称", key: "gysmc",width: 160},
  { show: true,ellipsis: true,dataIndex: "gysdm", title: "供应商代码", key: "gysdm",width: 100},
  { show: true,ellipsis: true,dataIndex: "kpzqq", title: "考评周期起", key: "kpzqq",width: 160},
  { show: true,ellipsis: true,dataIndex: "kpzqz", title: "考评周期止", key: "kpzqz",width: 100},
  { show: true,ellipsis: true,dataIndex: "zldf", title: "质量得分", key: "zldf",width: 100 },
  { show: true,ellipsis: true,dataIndex: "jfdf", title: "交付得分", key: "jfdf",width: 100 },
  { show: true,ellipsis: true,dataIndex: "jgdf", title: "价格得分", key: "jgdf",width: 100 },
  { show: true,ellipsis: true,dataIndex: "fwdf", title: "服务得分", key: "fwdf",width: 100 },
  { show: true,ellipsis: true,dataIndex: "zdf", title: "总得分", key: "zdf"},
  // { show: true,ellipsis: true,dataIndex: "pddj", title: "评定等级", key: "pddj" }  
  ]
}


/**
 * 
 * @returns 供应商评价记录colmun
 */
export function use_gyspj_initcolmun_import() {
  return [
  { show: true,ellipsis: true,dataIndex: "xuhao", title: "序号", key: "xuhao", width: 67 },  
  { show: true,ellipsis: true,dataIndex: "gysmc", title: "供应商名称", key: "gysmc",width: 160},
  { show: true,ellipsis: true,dataIndex: "kpzqq", title: "考评周期起", key: "kpzqq",width: 160},
  { show: true,ellipsis: true,dataIndex: "kpzqz", title: "考评周期止", key: "kpzqz",width: 100},
  { show: true,ellipsis: true,dataIndex: "pchgl", title: "批次合格率", key: "pchgl",width: 100 },
  { show: true,ellipsis: true,dataIndex: "jyhgps", title: "检验合格批数", key: "jyhgps",width: 100 },
  { show: true,ellipsis: true,dataIndex: "zjlps", title: "总进料批数", key: "zjlps",width: 100 },
  { show: true,ellipsis: true,dataIndex: "zcyccs", title: "制程异常次数", key: "zcyccs",width: 100 },
  { show: true,ellipsis: true,dataIndex: "tscs", title: "投诉次数", key: "tscs",width: 100 },
  { show: true,ellipsis: true,dataIndex: "zldf", title: "质量得分", key: "zldf",width: 100 },
  { show: true,ellipsis: true,dataIndex: "asjhl", title: "按时交货率", key: "asjhl",width: 100 },
  { show: true,ellipsis: true,dataIndex: "asjhps", title: "按时交货批数", key: "asjhps",width: 100 },
  { show: true,ellipsis: true,dataIndex: "zjlps_jf", title: "总进料批数", key: "zjlps_jf",width: 100 },
  { show: true,ellipsis: true,dataIndex: "jfdf", title: "交付得分", key: "jfdf",width: 100 },
  { show: true,ellipsis: true,dataIndex: "zjcs", title: "涨价次数", key: "zjcs",width: 100 },
  { show: true,ellipsis: true,dataIndex: "jjcs", title: "降价次数", key: "jjcs",width: 100 },
  { show: true,ellipsis: true,dataIndex: "jgdf", title: "价格得分", key: "jgdf",width: 100 },
  { show: true,ellipsis: true,dataIndex: "ycfk", title: "异常反馈单逾期回复", key: "ycfk",width: 100 },
  { show: true,ellipsis: true,dataIndex: "clsx", title: "供应商品质异常的处理时效性", key: "clsx",width: 100 },
  { show: true,ellipsis: true,dataIndex: "fw", title: "拖延，或拒绝退货和换货服务", key: "fw",width: 100 },
  { show: true,ellipsis: true,dataIndex: "fwdf", title: "服务得分", key: "fwdf",width: 100 },
  { show: true,ellipsis: true,dataIndex: "zdf", title: "总得分", key: "zdf"},
  // { show: true,ellipsis: true,dataIndex: "pddj", title: "评定等级", key: "pddj" }  
  ]
}

/**
 * 
 * @param {*} 供应商评价记录formdata 
 * @returns 
 */
export function use_gyspj_initformdata_view() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    gys_title: { ifdb: false, bt: false, value: "", title: '基本信息', dataIndex: 'gys_title', inputType: "title_item" },
     gys_title: { ifdb: false, bt: false, value: "", title: '基本信息', dataIndex: 'gys_title', inputType: "title_item" },
    gysmc: { ifdb: true, bt: false, value: "", title: '供应商名称', dataIndex: 'gysmc', inputType: "view_item",disabled:true,
      popup_maintitle: '正式供应商', popup_column: [
        { title: "序号", key: "xuhao" },
        { title: "供应商名称", key: "gysmc" },
        { title: "供应商代码", key: "gysdm" },
        { title: "供应商id", key: "id" },
      ],
      datas_key: 'query_gys',
      popup_tansferarr: [
        { origin: "gysmc", target: "gysmc" },
        { origin: "gysdm", target: "gysdm" },
        { origin: "id", target: "gysid" },
      ],
    },
    gysdm: { ifdb: true, bt: false, value: "", title: '供应商代码', dataIndex: 'gysdm', inputType: "view_item" ,disabled:true},
    gysid: { ifdb: true, bt: false, value: "", title: '供应商id', dataIndex: 'gysid', inputType: "none" },    
    kpzqq: { ifdb: true, bt: false, value: usenowDate(), title: '考评周期起', dataIndex: 'kpzqq', inputType: "view_item",disabled:true },
    kpzqz: { ifdb: true, bt: false, value: usenowDate(), title: '考评周期止', dataIndex: 'kpzqz', inputType: "view_item",disabled:true },

    zlpf_title: { ifdb: false, bt: false, value: "", title: '质量(40分)', dataIndex: 'zlpf_title', inputType: "title_item" },
    pchgl: { ifdb: true, bt: false, value: "", title: '批次合格率(20分)', dataIndex: 'pchgl', inputType: "view_item" },
    jyhgps: { ifdb: true, bt: false, value: "", title: '检验合格批数', dataIndex: 'jyhgps', inputType: "view_item" },
    zjlps: { ifdb: true, bt: false, value: "", title: '总进料批数', dataIndex: 'zjlps', inputType: "view_item" },
    zcyccs: { ifdb: true, bt: false, value: "", title: '制程异常次数', dataIndex: 'zcyccs', inputType: "view_item" },
    tscs: { ifdb: true, bt: false, value: "", title: '投诉次数', dataIndex: 'tscs', inputType: "view_item" },
    zldf: { ifdb: true, bt: false, value: "", title: '质量得分', dataIndex: 'zldf', inputType: "view_item" },

    jfpf_title: { ifdb: false, bt: false, value: "", title: '交付(40分)', dataIndex: 'jfpf_title', inputType: "title_item" },
    asjhl: { ifdb: true, bt: false, value: "", title: '按时交货率', dataIndex: 'asjhl', inputType: "view_item" },
    asjhps: { ifdb: true, bt: false, value: "", title: '按时交货批数', dataIndex: 'asjhps', inputType: "view_item" },
    zjlps_jf: { ifdb: true, bt: false, value: "", title: '总进料批数', dataIndex: 'zjlps_jf', inputType: "view_item" },
    jfdf: { ifdb: true, bt: false, value: "", title: '交付得分', dataIndex: 'jfdf', inputType: "view_item" },

    tspf_title: { ifdb: false, bt: false, value: "", title: '价格(15分)', dataIndex: 'tspf_title', inputType: "title_item" },
    zjcs: { ifdb: true, bt: false, value: "", title: '涨价次数', dataIndex: 'zjcs', inputType: "view_item" },
    jjcs: { ifdb: true, bt: false, value: "", title: '降价次数', dataIndex: 'jjcs', inputType: "view_item" },
    jgdf: { ifdb: true, bt: false, value: "", title: '价格得分', dataIndex: 'jgdf', inputType: "view_item" },
    

    fwpf_title: { ifdb: false, bt: false, value: "", title: '服务(15分)', dataIndex: 'fwpf_title', inputType: "title_item" },
    ycfk: { ifdb: true, bt: false, value: "", title: '异常反馈单(8D/A3)逾期回复', dataIndex: 'ycfk', inputType: "view_item" },
    clsx: { ifdb: true, bt: false, value: "", title: '供应商品质异常的处理时效性', dataIndex: 'clsx', inputType: "view_item" },
    fw: { ifdb: true, bt: false, value: "", title: '拖延，或拒绝退货和换货服务', dataIndex: 'fw', inputType: "view_item" },
    fwdf: { ifdb: true, bt: false, value: "", title: '服务得分', dataIndex: 'fwdf', inputType: "view_item" },
    
    kpxj_title: { ifdb: false, bt: false, value: "", title: '考评小结', dataIndex: 'kpxj_title', inputType: "title_item" },
    zdf: { ifdb: true, bt: false, value: "", title: '总得分', dataIndex: 'zdf', inputType: "view_item",disabled:true },
    
  }
  return initformdata
}


/**
 * 
 * @param {*} 供应商评价记录formdata 
 * @returns 
 */
export function use_gyspj_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    gys_title: { ifdb: false, bt: false, value: "", title: '基本信息', dataIndex: 'gys_title', inputType: "title_item" },
    gysmc: { ifdb: true, bt: false, value: "", title: '供应商名称', dataIndex: 'gysmc', inputType: "popup_item_datas_new",
      popup_maintitle: '正式供应商', popup_column: [
        { title: "序号", key: "xuhao" },
        { title: "供应商名称", key: "gysmc" },
        { title: "供应商代码", key: "gysdm" },
        { title: "供应商id", key: "id" },
      ],
      datas_key: 'query_gys',
      popup_tansferarr: [
        { origin: "gysmc", target: "gysmc" },
        { origin: "gysdm", target: "gysdm" },
        { origin: "id", target: "gysid" },
      ],
    },
    gysdm: { ifdb: true, bt: false, value: "", title: '供应商代码', dataIndex: 'gysdm', inputType: "input_item" ,disabled:true},
    gysid: { ifdb: true, bt: false, value: "", title: '供应商id', dataIndex: 'gysid', inputType: "none" },    
    kpzqq: { ifdb: true, bt: false, value: usenowDate(), title: '考评周期起', dataIndex: 'kpzqq', inputType: "date_item" },
    kpzqz: { ifdb: true, bt: false, value: usenowDate(), title: '考评周期止', dataIndex: 'kpzqz', inputType: "date_item" },

    zlpf_title: { ifdb: false, bt: false, value: "", title: '质量(40分)', dataIndex: 'zlpf_title', inputType: "title_item" },
    pchgl: { ifdb: true, bt: false, value: "", title: '批次合格率(20分)', dataIndex: 'pchgl', inputType: "readonly" },
    jyhgps: { ifdb: true, bt: false, value: "", title: '检验合格批数', dataIndex: 'jyhgps', inputType: "input_number_item" },
    zjlps: { ifdb: true, bt: false, value: "", title: '总进料批数', dataIndex: 'zjlps', inputType: "input_number_item" },
    zcyccs: { ifdb: true, bt: false, value: "", title: '制程异常次数', dataIndex: 'zcyccs', inputType: "input_number_item" },
    tscs: { ifdb: true, bt: false, value: "", title: '投诉次数', dataIndex: 'tscs', inputType: "input_number_item" },
    zldf: { ifdb: true, bt: false, value: "", title: '质量得分', dataIndex: 'zldf', inputType: "input_number_item", message: "最大分值40分", max: 40 },

    jfpf_title: { ifdb: false, bt: false, value: "", title: '交付(40分)', dataIndex: 'jfpf_title', inputType: "title_item" },
    asjhl: { ifdb: true, bt: false, value: "", title: '按时交货率', dataIndex: 'asjhl', inputType: "readonly" },
    asjhps: { ifdb: true, bt: false, value: "", title: '按时交货批数', dataIndex: 'asjhps', inputType: "input_number_item" },
    zjlps_jf: { ifdb: true, bt: false, value: "", title: '总进料批数', dataIndex: 'zjlps_jf', inputType: "input_number_item" },
    jfdf: { ifdb: true, bt: false, value: "", title: '交付得分', dataIndex: 'jfdf', inputType: "input_number_item", message: "最大分值40分", max: 40 },

    tspf_title: { ifdb: false, bt: false, value: "", title: '价格(15分)', dataIndex: 'tspf_title', inputType: "title_item" },
    zjcs: { ifdb: true, bt: false, value: "", title: '涨价次数', dataIndex: 'zjcs', inputType: "input_number_item" },
    jjcs: { ifdb: true, bt: false, value: "", title: '降价次数', dataIndex: 'jjcs', inputType: "input_number_item" },
    jgdf: { ifdb: true, bt: false, value: "", title: '价格得分', dataIndex: 'jgdf', inputType: "input_number_item", message: "最大分值15分", max: 15 },
    

    fwpf_title: { ifdb: false, bt: false, value: "", title: '服务(15分)', dataIndex: 'fwpf_title', inputType: "title_item" },
    ycfk: { ifdb: true, bt: false, value: "", title: '异常反馈单(8D/A3)逾期回复', dataIndex: 'ycfk', inputType: "input_number_item" },
    clsx: { ifdb: true, bt: false, value: "", title: '供应商品质异常的处理时效性', dataIndex: 'clsx', inputType: "input_number_item" },
    fw: { ifdb: true, bt: false, value: "", title: '拖延，或拒绝退货和换货服务', dataIndex: 'fw', inputType: "input_number_item" },
    fwdf: { ifdb: true, bt: false, value: "", title: '服务得分', dataIndex: 'fwdf', inputType: "input_number_item", message: "最大分值15分", max: 15 },
    
    kpxj_title: { ifdb: false, bt: false, value: "", title: '考评小结', dataIndex: 'kpxj_title', inputType: "title_item" },
    zdf: { ifdb: true, bt: false, value: "", title: '总得分', dataIndex: 'zdf', inputType: "input_number_item",disabled:true },
    // pddj: { ifdb: true, bt: false, value: "", title: '评定等级', dataIndex: 'pddj', inputType: "input_item",disabled:true},
    
  }
  return initformdata
}




/**
 * 
 * @returns 供应商变更记录colmun
 */
export function use_gysbg_initcolmun() {
  return [
  { show: true,ellipsis: true,dataIndex: "xuhao", title: "序号", key: "xuhao", width: 67 },  
  // { show: true,ellipsis: true,dataIndex: "djh", title: "变更单号", key: "bgdh",width: 160},
  { show: true,ellipsis: true,dataIndex: "gysdm", title: "供应商编码", key: "gysdm",width: 100},
  { show: true,ellipsis: true,dataIndex: "gysmc", title: "供应商名称", key: "gysmc",width: 280},
  { show: true,ellipsis: true,dataIndex: "qhlx", title: "供货类型", key: "qhlx",width: 100},
  { show: true,ellipsis: true,dataIndex: "clzt", title: "变更状态", key: "clzt",width: 100 },
  { show: true,ellipsis: true,dataIndex: "create_by", title: "发起人", key: "create_by",width: 100},
  { show: true,ellipsis: true,dataIndex: "create_time", title: "发起时间", key: "create_time"},
  
  ]
}

/**
 * 
 * @param {*} 供应商变更记录formdata 
 * @returns 
 */
export function use_gysbg_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    // dj_title: { ifdb: false, bt: false, value: "", title: '单据信息', dataIndex: 'dj_title', inputType: "title_item" },
    // create_by: { ifdb: true, bt: true, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    // create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    // update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    // update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    gys_title: { ifdb: false, bt: false, value: "", title: '基本信息', dataIndex: 'gys_title', inputType: "title_item" },

    gysmc: { ifdb: true, bt: true, value: "", title: '供应商名称', dataIndex: 'gysmc', inputType: "input_item" },
    hzzt: { ifdb: true, bt: true, value: "", title: '合作状态', dataIndex: 'hzzt', inputType: "select_item_new",disabled:true,
      datas_key: 'dict_hzzt',
      popup_tansferarr: [
        { origin: "label", target: "hzzt" },
      ],
    },

    erpdm: { ifdb: true, bt: false, value: "", title: 'ERP代码', dataIndex: 'erpdm', inputType: "input_item" },
    ghcp: { ifdb: true, bt: false, value: "", title: '供货产品', dataIndex: 'ghcp', inputType: "input_item" },
    lxr: { ifdb: true, bt: false, value: "", title: '联系人', dataIndex: 'lxr', inputType: "input_item" },
    sj: { ifdb: true, bt: false, value: "", title: '手机', dataIndex: 'sj', inputType: "input_item" },
    gsdz: { ifdb: true, bt: false, value: "", title: '公司地址', dataIndex: 'gsdz', inputType: "input_item" },
    fkfs: { ifdb: true, bt: false, value: "", title: '付款方式', dataIndex: 'fkfs', inputType: "input_item" },
    dj: { ifdb: true, bt: false, value: "", title: '等级', dataIndex: 'dj', inputType: "input_item" },
    gysjj: { ifdb: true, bt: false, value: "", title: '供应商简介', dataIndex: 'gysjj', inputType: "input_text_item" },

    gysdcbmb: { ifdb: false, bt: false, value: "供应商调查表.docx", title: '供应商调查表模板', dataIndex: 'gysdcbmb', inputType: "view_fj_item",style:{height:"2.4rem"} },
    gysdcb:{ifdb:true,bt:false,value:"",title:"供应商调查表",dataIndex:"gysdcb",inputType:"upload_fj_item",style:{height:"2.4rem"}},
    shxx_title: { ifdb: false, bt: false, value: "", title: '税务信息', dataIndex: 'shxx_title', inputType: "title_item" },
    sh: { ifdb: true, bt: false, value: "", title: '税号', dataIndex: 'sh', inputType: "input_item" },
    khh: { ifdb: true, bt: false, value: "", title: '开户行', dataIndex: 'khh', inputType: "input_item" },
    yhzh: { ifdb: true, bt: false, value: "", title: '银行账号', dataIndex: 'yhzh', inputType: "input_item" },
    zzfp: { ifdb: true, bt: false, value: "", title: '该公司是否可以开增值税发票', dataIndex: 'zzfp', inputType: "input_item" },
    jxsl: { ifdb: true, bt: false, value: "", title: '进项税率', dataIndex: 'jxsl', inputType: "input_item" },

    zzxx_title: { ifdb: false, bt: false, value: "", title: '证照信息', dataIndex: 'zzxx_title', inputType: "title_item" },
    yyzz: { ifdb: true, bt: true, value: "", title: '营业执照', dataIndex: 'yyzz', inputType: "upload_fj_item",style:{height:"2.4rem"} },
    
    xysbdm: { ifdb: true, bt: false, value: "", title: '社会信用代码', dataIndex: 'xysbdm', inputType: "input_item" },
    // bfdw: { ifdb: true, bt: false, value: "", title: '颁发单位', dataIndex: 'bfdw', inputType: "input_item" },

    // zzyxqks: { ifdb: true, bt: false, value: "", title: '执照有效期开始', dataIndex: 'zzyxqks', inputType: "date_item" },

    // zzyxqjs: { ifdb: true, bt: false, value: "", title: '有效期结束', dataIndex: 'zzyxqjs', inputType: "date_item" },
    fzsfz: { ifdb: true, bt: false, value: "", title: '法人身份证正反面', dataIndex: 'fzsfz', inputType: "upload_fj_item",style:{height:"2.4rem"} },
    // sfzyxqks: { ifdb: true, bt: false, value: "", title: '身份证有效期开始', dataIndex: 'sfzyxqks', inputType: "date_item" },
    gysdm: { ifdb: true, bt: false, value: "", title: '供应商编码', dataIndex: 'gysdm', inputType: "none" },
    
    bgxj: { ifdb: true, bt: false, value: "", title: '变更记录', dataIndex: 'bgxj', inputType: "input_text_item",disabled:true},
    clzt: { ifdb: true, bt: false, value: "", title: '变更状态', dataIndex: 'clzt', inputType: "none" },
    bgsj: { ifdb:true, bt: false, value: usenowDate(), title: '变更时间', dataIndex: 'bgsj', inputType: "date_item",disabled: true },



  }
  return initformdata
}

/**
 * 
 * @param {*} 供应商变更记录formdata 
 * @returns 
 */
export function use_gysbg_initformdata_view() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    // dj_title: { ifdb: false, bt: false, value: "", title: '单据信息', dataIndex: 'dj_title', inputType: "title_item" },
    // create_by: { ifdb: true, bt: true, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    // create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    // update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    // update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    gys_title: { ifdb: false, bt: false, value: "", title: '基本信息', dataIndex: 'gys_title', inputType: "title_item" },

    gysmc: { ifdb: true, bt: true, value: "", title: '供应商名称', dataIndex: 'gysmc', inputType: "view_item" },
    hzzt: { ifdb: true, bt: true, value: "", title: '合作状态', dataIndex: 'hzzt', inputType: "view_item",disabled:true,
      datas_key: 'dict_hzzt',
      popup_tansferarr: [
        { origin: "label", target: "hzzt" },
      ],
    },

    qylx: { ifdb: true, bt: true, value: "", title: '法人类型', dataIndex: 'qylx', inputType: "view_item",
      datas_key: 'dict_qylx',
      popup_tansferarr: [
        { origin: "label", target: "qylx" },
      ],
    },
    erpdm: { ifdb: true, bt: false, value: "", title: 'ERP代码', dataIndex: 'erpdm', inputType: "view_item" },
    ghcp: { ifdb: true, bt: false, value: "", title: '供货产品', dataIndex: 'ghcp', inputType: "view_item" },
    lxr: { ifdb: true, bt: false, value: "", title: '联系人', dataIndex: 'lxr', inputType: "view_item" },
    sj: { ifdb: true, bt: false, value: "", title: '手机', dataIndex: 'sj', inputType: "view_item" },
    gsdz: { ifdb: true, bt: false, value: "", title: '公司地址', dataIndex: 'gsdz', inputType: "view_item" },
    fkfs: { ifdb: true, bt: false, value: "", title: '付款方式', dataIndex: 'fkfs', inputType: "view_item" },
    dj: { ifdb: true, bt: false, value: "", title: '等级', dataIndex: 'dj', inputType: "view_item" },
    gysjj: { ifdb: true, bt: false, value: "", title: '供应商简介', dataIndex: 'gysjj', inputType: "view_text_item" },

    gysdcbmb: { ifdb: false, bt: false, value: "供应商调查表.docx", title: '供应商调查表模板', dataIndex: 'gysdcbmb', inputType: "view_fj_item",style:{height:"2.4rem"} },
    gysdcb:{ifdb:true,bt:false,value:"",title:"供应商调查表",dataIndex:"gysdcb",inputType:"view_fj_item",style:{height:"2.4rem"}},
    shxx_title: { ifdb: false, bt: false, value: "", title: '税务信息', dataIndex: 'shxx_title', inputType: "title_item" },
    sh: { ifdb: true, bt: false, value: "", title: '税号', dataIndex: 'sh', inputType: "view_item" },
    khh: { ifdb: true, bt: false, value: "", title: '开户行', dataIndex: 'khh', inputType: "view_item" },
    yhzh: { ifdb: true, bt: false, value: "", title: '银行账号', dataIndex: 'yhzh', inputType: "view_item" },
    zzfp: { ifdb: true, bt: false, value: "", title: '该公司是否可以开增值税发票', dataIndex: 'zzfp', inputType: "view_item" },
    jxsl: { ifdb: true, bt: false, value: "", title: '进项税率', dataIndex: 'jxsl', inputType: "view_item" },

    zzxx_title: { ifdb: false, bt: false, value: "", title: '证照信息', dataIndex: 'zzxx_title', inputType: "title_item" },
    yyzz: { ifdb: true, bt: true, value: "", title: '营业执照', dataIndex: 'yyzz', inputType: "view_fj_item",style:{height:"2.4rem"} },
    
    xysbdm: { ifdb: true, bt: false, value: "", title: '社会信用代码', dataIndex: 'xysbdm', inputType: "view_item" },
    // bfdw: { ifdb: true, bt: false, value: "", title: '颁发单位', dataIndex: 'bfdw', inputType: "input_item" },

    // zzyxqks: { ifdb: true, bt: false, value: "", title: '执照有效期开始', dataIndex: 'zzyxqks', inputType: "date_item" },

    // zzyxqjs: { ifdb: true, bt: false, value: "", title: '有效期结束', dataIndex: 'zzyxqjs', inputType: "date_item" },
    fzsfz: { ifdb: true, bt: false, value: "", title: '法人身份证正反面', dataIndex: 'fzsfz', inputType: "view_fj_item",style:{height:"2.4rem"} },
    // sfzyxqks: { ifdb: true, bt: false, value: "", title: '身份证有效期开始', dataIndex: 'sfzyxqks', inputType: "date_item" },
    gysdm: { ifdb: true, bt: false, value: "", title: '供应商编码', dataIndex: 'gysdm', inputType: "none" },
    
    bgxj: { ifdb: true, bt: false, value: "", title: '变更记录', dataIndex: 'bgxj', inputType: "input_text_item",disabled:true },
    clzt: { ifdb: true, bt: false, value: "", title: '变更状态', dataIndex: 'clzt', inputType: "none" },
    bgsj: { ifdb:true, bt: false, value: usenowDate(), title: '变更时间', dataIndex: 'bgsj', inputType: "view_item"},



  }
  return initformdata
}




/**
 * 
 * @returns 正常人员档案colmun
 */
export function use_ry_initcolmun() {
  return [{ show: true,ellipsis: true, title: "序号", key: "xuhao",dataIndex:"xuhao", width: 100   },
    { show: true,ellipsis: true, title: "部门", key: "bmmc", dataIndex:"bmmc",width: 120, },
    // { show: true, title: "部门序号", key: "bmmc_row", width: '7vw', },
    { show: true,ellipsis: true, title: "职位", key: "gw", dataIndex:"gw",width: 100  },
    { show: true,ellipsis: true, title: "用户名", key: "xm", dataIndex:"xm", width: 100 },
    { show: true,ellipsis: true, title: "用户类型", key: "yhlx", dataIndex:"yhlx", width: 100 },
    { show: true,ellipsis: true, title: "性别", key: "xb", dataIndex:"xb" ,width: 100},
    { show: true,ellipsis: true, title: "手机号", key: "dh" ,width:200,dataIndex:"dh"}, 
    //  { show: true, title: "工龄", key: "gl" },
    // { show: true, title: "民族", key: "mz" },
    // { show: true, title: "学历", key: "xl" },
    // { show: true, title: "户口", key: "hk" },
    
    // { show: true, title: "身份证号", key: "sfzhm",width:'15vw'},
    { show: true,ellipsis: true, title: "人员状态", key: "ryzt", dataIndex:"ryzt", width: 100 },
    { show: true,ellipsis: true, title: "禁用时间", key: "lzsj", dataIndex:"lzsj" },
      // { show: true, title: "社保情况", key: "sbqk",width:'7vw'},
      //  { show: true, title: "合同", key: "yglx"},
      //  { show: true, title: "备注说明", key: "bz" },
  ]

}
/**
 * 
 * @returns 离职人员档案colmun
 */
export function use_lz_ry_initcolmun() {
  return [{ show: true,ellipsis: true, title: "序号", key: "xuhao",dataIndex:"xuhao", width: 100   },
    { show: true,ellipsis: true, title: "部门", key: "bmmc", dataIndex:"bmmc",width: 120, },
    // { show: true, title: "部门序号", key: "bmmc_row", width: '7vw', },
    { show: true,ellipsis: true, title: "职位", key: "gw", dataIndex:"gw",width: 100  },
    { show: true,ellipsis: true, title: "用户名", key: "xm", dataIndex:"xm", width: 100 },
    { show: true,ellipsis: true, title: "用户类型", key: "yhlx", dataIndex:"yhlx", width: 100 },
    { show: true,ellipsis: true, title: "性别", key: "xb", dataIndex:"xb" ,width: 100},
    { show: true,ellipsis: true, title: "手机号", key: "dh" ,width:200,dataIndex:"dh"}, 
    //  { show: true, title: "工龄", key: "gl" },
    // { show: true, title: "民族", key: "mz" },
    // { show: true, title: "学历", key: "xl" },
    // { show: true, title: "户口", key: "hk" },
    
    // { show: true, title: "身份证号", key: "sfzhm",width:'15vw'},
    { show: true,ellipsis: true, title: "人员状态", key: "ryzt", dataIndex:"ryzt", width: 100 },
    { show: true,ellipsis: true, title: "禁用时间", key: "lzsj", dataIndex:"lzsj" },
      // { show: true, title: "社保情况", key: "sbqk",width:'7vw'},
      //  { show: true, title: "合同", key: "yglx"},
      //  { show: true, title: "备注说明", key: "bz" },
  ]

}




/**
 * 
 * @param {*} 人员档案formdata 
 * @returns 
 */
export function use_ry_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    wlxx_title: { ifdb: false, bt: false, value: "", title: '人员信息', dataIndex: 'wlxx_title', inputType: "title_item" },
    // create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    // create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    // update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    // update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    xm: { ifdb: true, bt: true, value: "", title: '用户名', dataIndex: 'xm', inputType: "input_item", },
    // xb: {
    //   ifdb: true, bt: false , value: "", title: '性别', dataIndex: 'xb', inputType: "select_item",
    //   selectdata: [
    //     { value: '男', label: "男" }, { value: '女', label: "女" },]
    // },
    gw: { ifdb: true, bt: false, value: "", title: '职位', dataIndex: 'gw', inputType: "input_item", },
    bmmc: { ifdb: true, bt: false, value: "", title: '部门名称', dataIndex: 'bmmc', inputType: "select_item_new",
      datas_key: 'dict_bmmc',
      popup_tansferarr: [
        { origin: "label", target: "bmmc" },
      ],
    },
    dh: { ifdb: true, bt: false, value: "", title: '手机号', dataIndex: 'dh', inputType: "input_item", },
    
    // bmid: { ifdb: true, bt: false, value: "", title: '部门id', dataIndex: 'bmid', inputType: "readonly", },

    zhxx_title: { ifdb: false, bt: false, value: "", title: '账号信息', dataIndex: 'zhxx_title', inputType: storage.js == '全局管理员' ? "title_item" : "none", },
    
    zh: { ifdb: true, bt: false, value: "", title: '账号', dataIndex: 'zh', inputType: storage.js == '全局管理员' ? "input_item" : "none", },
    mm: { ifdb: true, bt: false, value: "", title: '密码', dataIndex: 'mm', inputType: storage.js == '全局管理员' ? "input_item" : "none", type: "password" },
    yhlx: { ifdb: true, bt: false, value: "", title: '用户类型', dataIndex: 'yhlx', inputType: "select_item_new",
      datas_key: 'dict_yhlx',
      popup_tansferarr: [
        { origin: "label", target: "yhlx" },
      ],
    },
    js: {
      ifdb: true, bt: false, value: "", title: '角色', dataIndex: 'js', inputType: storage.js == '全局管理员' ? "popup_item_datas_new" : "none",
      popup_maintitle: '菜单名称', popup_column: [
        { title: "序号", key: "xuhao" },
        { title: "角色名称", key: "jsmc" },
      ],
      datas_key: 'dates_js',
      popup_tansferarr: [
        { origin: "jsmc", target: "js" },
        { origin: "id", target: "jsid" },
      ],
    },
    rzsj: { ifdb: true, bt: false, value: usenowDate() , title: '入驻时间', dataIndex: 'rzsj', inputType: "date_item",disabled: true },
    
    ryzt: {
      ifdb: true, bt: false, value: "正常", title: '用户状态', dataIndex: 'ryzt', inputType: storage.js == '全局管理员' ? "select_item" : "none", selectdata: [
        { value: '禁用', label: "禁用" }, { value: '正常', label: "正常" },]
    },
    lzsj: { ifdb: true, bt: false, value: "", title: '禁用时间', dataIndex: 'lzsj', inputType: "date_item",disabled: true },
   
    jsid: { ifdb: true, bt: false, value: "", title: '角色id', dataIndex: 'jsid', inputType: storage.js == '全局管理员' ? "none" : "none", },

  }
  return initformdata
}


/**
 * 
 * @param {*} 人员档案formdata 
 * @returns 
 */
export function use_ry_view_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    wlxx_title: { ifdb: false, bt: false, value: "", title: '人员信息', dataIndex: 'wlxx_title', inputType: "title_item" },
   
    xm: { ifdb: true, bt: true, value: "", title: '用户名', dataIndex: 'xm', inputType: "view_item", },
   
    gw: { ifdb: true, bt: false, value: "", title: '职位', dataIndex: 'gw', inputType: "view_item", },
    bmmc: { ifdb: true, bt: false, value: "", title: '部门名称', dataIndex: 'bmmc', inputType: "view_item"},
    dh: { ifdb: true, bt: false, value: "", title: '手机号', dataIndex: 'dh', inputType: "view_item", },
    zhxx_title: { ifdb: false, bt: false, value: "", title: '账号信息', dataIndex: 'zhxx_title', inputType: storage.js == '全局管理员' ? "title_item" : "none", },
    
    zh: { ifdb: true, bt: false, value: "", title: '账号', dataIndex: 'zh', inputType: storage.js == '全局管理员' ? "view_item" : "none", },
    mm: { ifdb: true, bt: false, value: "", title: '密码', dataIndex: 'mm', inputType: storage.js == '全局管理员' ? "view_item" : "none", type: "password" },
    yhlx: { ifdb: true, bt: false, value: "", title: '用户类型', dataIndex: 'yhlx', inputType: "view_item"},
    js: {
      ifdb: true, bt: false, value: "", title: '角色', dataIndex: 'js', inputType: storage.js == '全局管理员' ? "view_item" : "none",
    },
    rzsj: { ifdb: true, bt: false, value: usenowDate() , title: '入驻时间', dataIndex: 'rzsj', inputType: "view_item",disabled: true },
    
    ryzt: {
      ifdb: true, bt: false, value: "正常", title: '用户状态', dataIndex: 'ryzt', inputType: storage.js == '全局管理员' ? "view_item" : "none"},
    lzsj: { ifdb: true, bt: false, value: "", title: '禁用时间', dataIndex: 'lzsj', inputType: "view_item",disabled: true },
   
    jsid: { ifdb: true, bt: false, value: "", title: '角色id', dataIndex: 'jsid', inputType: storage.js == '全局管理员' ? "none" : "none", },

  }
  return initformdata
}


/**
 * 
 * @returns 注册申请colmun
 */
export function use_zcxx_initcolmun() {
  return [{  show: true,ellipsis: true, title: "序号", key: "xuhao",dataIndex:"xuhao", width: 100 },
  
  {  show: true,ellipsis: true, title: "供应商名称", key: "gysmc",dataIndex:"gysmc",width: 220 },
  {  show: true,ellipsis: true, title: "信用识别代码", key: "xysbdm", dataIndex:"xysbdm",width: 220 },
  {  show: true,ellipsis: true, title: "联系人", key: "lxr", dataIndex:"lxr",width: 100 },
  {  show: true,ellipsis: true, title: "手机号", key: "dh", dataIndex:"dh",width: 120  },
  {  show: true,ellipsis: true, title: "处理状态", key: "clzt", dataIndex:"clzt",width: 120  },
  {  show: true,ellipsis: true,title: "创建时间", key: "create_time",dataIndex:"create_time"},
  ]
}

/**
 * 
 * @param {*} 注册申请formdata 
 * @returns 
 */
export function use_zcxx_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    djxx_title: { ifdb: false, bt: false, value: "", title: '系统信息', dataIndex: 'djxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: true, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "none", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    clzt: { ifdb: true, bt: false, value: "未处理", title: '处理状态', dataIndex: 'clzt', inputType: "input_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    khxx_title: { ifdb: false, bt: false, value: "", title: '申请信息', dataIndex: 'khxx_title', inputType: "title_item" },
   
    gysmc: { ifdb: true, bt: true, value: "", title: '供应商名称', dataIndex: 'gysmc', inputType: "input_item", },
    xysbdm: { ifdb: true, bt: true, value: "", title: '信用识别代码', dataIndex: 'xysbdm', inputType: "input_item", },
    lxr: { ifdb: true, bt: true, value: "", title: '联系人', dataIndex: 'lxr', inputType: "input_item", },
    dh: { ifdb: true, bt: true, value: "", title: '手机号', dataIndex: 'dh', inputType: "input_item", },


  }
  return initformdata
}

/**
 * 
 * @param {*} 注册申请formdata 
 * @returns 
 */
export function use_zcxx_view_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    djxx_title: { ifdb: false, bt: false, value: "", title: '系统信息', dataIndex: 'djxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: true, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "none", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "view_item", disabled: true },
    clzt: { ifdb: true, bt: false, value: "未处理", title: '处理状态', dataIndex: 'clzt', inputType: "view_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "view_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "view_item", disabled: true },
    khxx_title: { ifdb: false, bt: false, value: "", title: '申请信息', dataIndex: 'khxx_title', inputType: "title_item" },
   
    gysmc: { ifdb: true, bt: true, value: "", title: '供应商名称', dataIndex: 'gysmc', inputType: "view_item", },
    xysbdm: { ifdb: true, bt: true, value: "", title: '信用识别代码', dataIndex: 'xysbdm', inputType: "view_item", },
    lxr: { ifdb: true, bt: true, value: "", title: '联系人', dataIndex: 'lxr', inputType: "view_item", },
    dh: { ifdb: true, bt: true, value: "", title: '手机号', dataIndex: 'dh', inputType: "view_item", },


  }
  return initformdata
}




/**
 * 
 * @returns 客户档案colmun
 */
export function use_khda_initcolmun() {
  return [{ show: true, title: "序号", key: "xuhao", width: "4rem" },
  { show: true, title: "创建时间", key: "create_time" },
  { show: true, title: "编码", key: "bm" },
  { show: true, title: "名称", key: "mc", width: "14rem", style: { fontSize: "0.6rem" } },
  { show: true, title: "地址", key: "dz", width: "18rem", style: { fontSize: "0.6rem" } },
  { show: true, title: "联系人", key: "lxr" },
  { show: true, title: "电话", key: "dh" },

  ]
}

/**
 * 
 * @param {*} 客户档案formdata 
 * @returns 
 */
export function use_khda_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    djxx_title: { ifdb: false, bt: false, value: "", title: '单据信息', dataIndex: 'djxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    khxx_title: { ifdb: false, bt: false, value: "", title: '客户信息', dataIndex: 'khxx_title', inputType: "title_item" },
    khlx: {
      ifdb: true, bt: true, value: "订单客户", title: '客户类型', dataIndex: 'khlx', inputType: "select_item",
      selectdata: [{ value: "订单客户", label: "订单客户" }, { value: "售后客户", label: "售后客户" }]
    },
    mc: { ifdb: true, bt: true, value: "", title: '客户名称', dataIndex: 'mc', inputType: "input_item", },
    bm: { ifdb: true, bt: true, value: "", title: '客户编码', dataIndex: 'bm', inputType: "input_number_item", },
    gngw: {
      ifdb: true, bt: true, value: "国内", title: '国内国外', dataIndex: 'gngw', inputType: "select_item",
      selectdata: [
        { value: '国内', label: "国内" }, { value: '国外', label: "国外" },]
    },
    // jc: { ifdb: true, bt: false, value: "", title: '简称', dataIndex: 'jc', inputType: "input_item", },
    // dqbm: { ifdb: true, bt: false, value: "", title: '地区编码', dataIndex: 'dqbm', inputType: "input_item", },
    // hybm: { ifdb: true, bt: false, value: "", title: '行业编码', dataIndex: 'hybm', inputType: "input_item", },
    // ssdq: { ifdb: true, bt: false, value: "", title: '所属地区', dataIndex: 'ssdq', inputType: "input_item", },
    shxx_title: { ifdb: false, bt: false, value: "", title: '收货信息', dataIndex: 'shxx_title', inputType: "title_item" },

    lxr: { ifdb: true, bt: true, value: "", title: '联系人', dataIndex: 'lxr', inputType: "input_item", },
    dh: { ifdb: true, bt: true, value: "", title: '电话', dataIndex: 'dh', inputType: "input_item", },
    dz: { ifdb: true, bt: true, value: "", title: '地址', dataIndex: 'dz', inputType: "input_text_item", },


    yhxx_title: { ifdb: false, bt: false, value: "", title: '开票信息', dataIndex: 'yhxx_title', inputType: "title_item" },
    nsrsbh: { ifdb: true, bt: false, value: "", title: '纳税人识别号', dataIndex: 'nsrsbh', inputType: "input_item", },

    khyh: { ifdb: true, bt: false, value: "", title: '开户银行', dataIndex: 'khyh', inputType: "input_item", },
    yhzh: { ifdb: true, bt: false, value: "", title: '银行账号', dataIndex: 'yhzh', inputType: "input_item", },
    yb: { ifdb: true, bt: false, value: "", title: '邮编', dataIndex: 'yb', inputType: "input_item", },


  }
  return initformdata
}
/**
 * 
 * @returns 部门档案colmun
 */
export function use_bm_initcolmun() {
  return [{ show: true,ellipsis: true,  title: "序号", key: "xuhao" ,dataIndex:"xuhao",width:120},

  { show: true,ellipsis: true,  title: "部门名称", key: "bmmc" ,dataIndex:"bmmc",width:120},
  { show: true,ellipsis: true,  title: "部门编号", key: "bmbh" ,dataIndex:"bmbh",width:120},
  { show: true,ellipsis: true,  title: "上级部门", key: "sjbm" ,dataIndex:"sjbm",width:120},
  { show: true,ellipsis: true,  title: "备注说明", key: "bzsm" ,dataIndex:"bzsm",width:120},
  { show: true,ellipsis: true,  title: "创建时间", key: "create_time" ,dataIndex:"create_time",width:120},
  { show: true,ellipsis: true,  title: "创建人", key: "create_by" ,dataIndex:"create_by"},
  ]
}

/**
 * 
 * @param {*} 部门档案formdata 
 * @returns 
 */
export function use_bm_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    bmxx_title: { ifdb: false, bt: false, value: "", title: '部门信息', dataIndex: 'bmxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    bmmc: { ifdb: true, bt: true, value: "", title: '部门名称', dataIndex: 'bmmc', inputType: "input_item", },
    bmbh: { ifdb: true, bt: true, value: "", title: '部门编号', dataIndex: 'bmbh', inputType: "input_item", },
    sjbm: {
      ifdb: true, bt: true, value: "", title: '上级部门', dataIndex: 'sjbm', inputType: "tree_select_item",
      selectdata: []
    },
    parentid: { ifdb: true, bt: true, value: "", title: 'parentid', dataIndex: 'parentid', inputType: "readonly", },
    bzsm: { ifdb: true, bt: true, value: "", title: '备注说明', dataIndex: 'bzsm', inputType: "input_text_item", },
  }
  return initformdata
}

/**
 * 
 * @param {*} 部门档案查看formdata 
 * @returns 
 */
export function use_bm_view_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    bmxx_title: { ifdb: false, bt: false, value: "", title: '部门信息', dataIndex: 'bmxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: true, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "view_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "view_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "view_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "view_item", disabled: true },
    bmmc: { ifdb: true, bt: true, value: "", title: '部门名称', dataIndex: 'bmmc', inputType: "view_item", },
    bmbh: { ifdb: true, bt: true, value: "", title: '部门编号', dataIndex: 'bmbh', inputType: "view_item", },
    sjbm: {
      ifdb: true, bt: true, value: "", title: '上级部门', dataIndex: 'sjbm', inputType: "view_item"},
    parentid: { ifdb: true, bt: true, value: "", title: 'parentid', dataIndex: 'parentid', inputType: "none", },
    bzsm: { ifdb: true, bt: true, value: "", title: '备注说明', dataIndex: 'bzsm', inputType: "view_item", },
  }
  return initformdata
}
/**
 * 
 * @returns 车间档案colmun
 */
export function use_cj_initcolmun() {
  return [{ show: true, title: "序号", key: "xuhao" },
  { show: true, title: "创建时间", key: "create_time" },
  { show: true, title: "创建人", key: "create_by" },
  { show: true, title: "车间名称", key: "cjmc" },
  { show: true, title: "车间编码", key: "cjbm" },
  { show: true, title: "备注说明", key: "bzsm" },
  ]
}

/**
 * 
 * @param {*} 车间档案formdata 
 * @returns 
 */
export function use_cj_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    wlxx_title: { ifdb: false, bt: false, value: "", title: '客户信息', dataIndex: 'wlxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    cjmc: { ifdb: true, bt: true, value: "", title: '车间名称', dataIndex: 'cjmc', inputType: "input_item", },
    cjbm: { ifdb: true, bt: true, value: "", title: '车间编码', dataIndex: 'cjbm', inputType: "input_item", },
    bzsm: { ifdb: true, bt: true, value: "", title: '备注说明', dataIndex: 'bzsm', inputType: "input_text_item", },
  }
  return initformdata
}

/**
 

 * @returns 产线档案colmun
 */
export function use_cx_initcolmun() {
  return [{ show: true, title: "序号", key: "xuhao" },
  { show: true, title: "创建时间", key: "create_time" },
  { show: true, title: "创建人", key: "create_by" },
  { show: true, title: "产线名称", key: "cxmc" },
  { show: true, title: "产线编码", key: "cxbm" },
  { show: true, title: "备注说明", key: "bzsm" },
  ]
}

/**
 * 
 * @param {*} 产线档案formdata 
 * @returns 
 */
export function use_cx_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    wlxx_title: { ifdb: false, bt: false, value: "", title: '产线信息', dataIndex: 'wlxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    cxmc: { ifdb: true, bt: true, value: "", title: '产线名称', dataIndex: 'cxmc', inputType: "input_item", },
    cxbm: { ifdb: true, bt: true, value: "", title: '产线编码', dataIndex: 'cxbm', inputType: "input_number_item", },
    bzsm: { ifdb: true, bt: true, value: "", title: '备注说明', dataIndex: 'bzsm', inputType: "input_text_item", },
  }
  return initformdata
}

/**
 * 
 * @returns 仓库档案colmun
 */
export function use_ckda_initcolmun() {
  return [{ show: true, ellipsis: true, title: "序号", key: "xuhao", dataIndex: "xuhao", width: 67 },
  { show: true, ellipsis: true, title: "创建时间", key: "create_time", dataIndex: "create_time", width: 160},
  { show: true, ellipsis: true, title: "创建人", key: "create_by", dataIndex: "create_by", width: 120 },
  { show: true, ellipsis: true, title: "仓库编码", key: "ckbm", dataIndex: "ckbm", width: 120 },
  { show: true, ellipsis: true, title: "仓库名称", key: "ckmc", dataIndex: "ckmc", width: 120 },
  { show: true, ellipsis: true, title: "备注", key: "bz", dataIndex: "bz", width: 120 },
  { show: true, ellipsis: true, title: "仓库状态", key: "ckzt", dataIndex: "ckzt" },

  ]
}

/**
 * 
 * @param {*} 仓库档案formdata 
 * @returns 
 */
export function use_ckda_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    wlxx_title: { ifdb: false, bt: false, value: "", title: '客户信息', dataIndex: 'wlxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    ckmc: { ifdb: true, bt: true, value: "", title: '仓库名称', dataIndex: 'ckmc', inputType: "input_item", },
    ckbm: { ifdb: true, bt: true, value: "", title: '仓库编码', dataIndex: 'ckbm', inputType: "input_item", },
    ckzt: {
      ifdb: true, bt: true, value: "正常", title: '仓库状态', dataIndex: 'ckzt', inputType: "select_item",
      selectdata: [{ value: "禁用", label: "禁用" }, { value: "正常", label: "正常" }]
    },
    // cksx: { ifdb: true, bt: true, value: "", title: '仓库属性', dataIndex: 'cksx', inputType: "input_item", },    
    bz: { ifdb: true, bt: true, value: "", title: '备注说明', dataIndex: 'bz', inputType: "input_text_item", },

  }
  return initformdata
}


/**
 * 
 * @param {*} 仓库档案viewformdata 
 * @returns 
 */
export function use_ckda_view_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    wlxx_title: { ifdb: false, bt: false, value: "", title: '客户信息', dataIndex: 'wlxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: true, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "view_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "view_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "view_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "view_item", disabled: true },
    ckmc: { ifdb: true, bt: true, value: "", title: '仓库名称', dataIndex: 'ckmc', inputType: "view_item", },
    ckbm: { ifdb: true, bt: true, value: "", title: '仓库编码', dataIndex: 'ckbm', inputType: "view_item", },
    ckzt: {
      ifdb: true, bt: true, value: "正常", title: '仓库状态', dataIndex: 'ckzt', inputType: "view_item",
     
    },
    // cksx: { ifdb: true, bt: true, value: "", title: '仓库属性', dataIndex: 'cksx', inputType: "input_item", },    
    bz: { ifdb: true, bt: true, value: "", title: '备注说明', dataIndex: 'bz', inputType: "view_item", },

  }
  return initformdata
}


/**
 * 
 * @returns 文档档案colmun
 */
export function use_wd_initcolmun() {
  return [
    { show: true, title: "序号", key: "xuhao", width: "60px" },
    { show: true, title: "创建时间", key: "create_time" },
    { show: true, title: "创建人", key: "create_by" },
    { show: true, title: "文件名称", key: "wjmc" },
    { show: true, title: "分类名称", key: "flmc" },
    { show: true, title: "文件权限", key: "wjqx" },
    { show: true, title: "备注", key: "bz" },
    { show: true, title: "下载次数", key: "xzcs" },
  ]
}

/**
 * 
 * @param {*} 文档档案formdata 
 * @returns 
 */
export function use_wd_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    wlxx_title: { ifdb: false, bt: false, value: "", title: '文档信息', dataIndex: 'wlxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    wjmc: { ifdb: true, bt: true, value: "", title: '文件名称', dataIndex: 'wjmc', inputType: "input_item", },
    flmc: {
      ifdb: true, bt: true, value: "", title: '分类名称', dataIndex: 'flmc', inputType: "select_item_new",
      datas_key: "query_wdfl",
      popup_tansferarr: [
        { origin: "flmc", target: "flmc" },
      ]
    },
    wjqx: {
      ifdb: true, bt: true, value: "", title: '文件权限', dataIndex: 'wjqx', inputType: "select_item_new",
      datas_key: "query_js",
      popup_tansferarr: [
        { origin: "jsmc", target: "wjqx" },
      ]
    },
    fj: {
      ifdb: true, bt: false, value: "", title: '附件', dataIndex: 'fj', inputType: "upload_fj_item",
      oneline: "true", lineheight: "5.6rem"
    },
    // cksx: { ifdb: true, bt: true, value: "", title: '仓库属性', dataIndex: 'cksx', inputType: "input_item", },    
    bz: { ifdb: true, bt: false, value: "", title: '备注说明', dataIndex: 'bz', inputType: "input_text_item", },

  }
  return initformdata
}

/**
 * 
 * @returns 文档分类colmun
 */
export function use_wdfl_initcolmun() {
  return [
    { show: true, title: "序号", key: "xuhao", width: "60px" },
    { show: true, title: "创建时间", key: "create_time" },
    { show: true, title: "创建人", key: "create_by" },
    { show: true, title: "分类名称", key: "flmc" },
    { show: true, title: "几级分类", key: "jjfl" },
    { show: true, title: "上一级分类名称", key: "parent_mc" },
    { show: true, title: "备注", key: "bz" },
  ]
}

/**
 * 
 * @param {*} 文档分类formdata 
 * @returns 
 */
export function use_wdfl_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    wlxx_title: { ifdb: false, bt: false, value: "", title: '文档信息', dataIndex: 'wlxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    flmc: { ifdb: true, bt: true, value: "", title: '分类名称', dataIndex: 'flmc', inputType: "input_item", },
    jjfl: { ifdb: true, bt: true, value: "", title: '几级分类', dataIndex: 'jjfl', inputType: "input_number_item", },
    parent_mc: {
      ifdb: true, bt: false, value: "", title: '上一级分类名称', dataIndex: 'parent_mc', inputType: "select_item_new",
      datas_key: "query_wdfl",
      popup_tansferarr: [
        { origin: "flmc", target: "parent_mc" },
      ]
    },
    // cksx: { ifdb: true, bt: true, value: "", title: '仓库属性', dataIndex: 'cksx', inputType: "input_item", },    
    bz: { ifdb: true, bt: false, value: "", title: '备注说明', dataIndex: 'bz', inputType: "input_text_item", },

  }
  return initformdata
}


/**
 * 
 * @returns 文档档案colmun
 */
export function use_wd_mx_initcolmun() {
  return [
    { show: true, title: "序号", key: "xuhao", width: "60px" },
    { show: true, title: "下载人", key: "xzr" },
    { show: true, title: "下载时间", key: "xzsj" },
  ]
}

/**
 * 
 * @returns 产品档案colmun
 */
export function use_cpda_initcolmun() {
  return [
    { show: true, title: "序号", key: "xuhao" },
    { show: true, title: "物料编码", key: "wlbm" },
    { show: true, title: "物料名称", key: "wlmc" },
    { show: true, title: "规格型号", key: "ggxh" },
    //  { show: true, title: "产品组", key: "cpz" },
    //{ show: true, title: "产品重量", key: "cpzl" },
    //  { show: true, title: "产品体积", key: "cptj" },
    //    { show: true, title: "保质期", key: "bzq" },
    { show: true, title: "当前库存", key: "dqkc" },
    { show: true, title: "安全库存", key: "aqkc" },
    { show: true, title: "产品图片", key: "cptp", rendertype: "img" },
    { show: true, title: "工艺路线", key: "gylx_mc", rendertype: "url" },
    { show: true, title: "作业指导书", key: "zyzds_mc", rendertype: "url" },


  ]
}

/**
 * 
 * @param {*} 产品档案formdata 
 * @returns 
 */
export function use_cpda_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    wlxx_title: { ifdb: false, bt: false, value: "", title: '文档信息', dataIndex: 'wlxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    cpda_title: { ifdb: false, bt: false, value: "", title: '产品信息', dataIndex: 'cpda_title', inputType: "title_item" },

    wlmc: {
      ifdb: true, bt: true, defalut_v: "", value: "", title: '产品名称', dataIndex: 'wlmc', inputType: "popup_item_datas",
      width: "10rem",
      popup_maintitle: '物料名称', popup_column: [
        { title: "序号", key: "xuhao" },
        { title: "物料名称", key: "wlmc" },
        { title: "物料编码", key: "wlbm" },
        { title: "规格型号", key: "ggxh" },
        { title: "单位", key: "dw" },
        { title: "版本号", key: "bbh" },
        { title: "备注说明", key: "bzsm" },

      ],
      datas_key: 'datas_wlmc',
      popup_tansferarr: [
        { origin: "wlmc", target: "wlmc" },
        { origin: "wlbm", target: "wlbm" },
        { origin: "ggxh", target: "ggxh" },
        { origin: "bbh", target: "bbh" },

      ],
    },
    wlbm: { ifdb: true, bt: false, value: "", title: '物料编码', dataIndex: 'wlbm', inputType: "readonly" },
    ggxh: { ifdb: true, bt: false, value: "", title: '规格型号', dataIndex: 'ggxh', inputType: "readonly" },

    bzscsj: { ifdb: true, bt: false, value: "", title: '标准生产时间', dataIndex: 'bzscsj', inputType: "input_number_item" },

    cpz: { ifdb: true, bt: false, value: "", title: '产品组', dataIndex: 'cpz', inputType: "input_item" },
    cpzl: { ifdb: true, bt: false, value: "", title: '产品重量', dataIndex: 'cpzl', inputType: "input_item" },
    cptj: { ifdb: true, bt: false, value: "", title: '产品体积', dataIndex: 'cptj', inputType: "input_item" },
    bzq: { ifdb: true, bt: false, value: "", title: '保质期', dataIndex: 'bzq', inputType: "input_number_item" },
    aqkc: { ifdb: true, bt: true, value: "0", title: '安全库存', dataIndex: 'aqkc', inputType: "input_item" },

    cctj: { ifdb: true, bt: false, value: "", title: '存储条件', dataIndex: 'cctj', inputType: "input_item" },
    cptp: {
      ifdb: true, bt: false, value: "", title: '产品图片', dataIndex: 'cptp', inputType: "upload_item",
      oneline: "true", lineheight: "5.6rem"

    },

    gylx_title: { ifdb: false, bt: false, value: "", title: '工艺路线', dataIndex: 'gylx_title', inputType: "title_item" },
    //  gylx_mc: { ifdb: true, bt: false, value: "", title: '名称', dataIndex: 'gylx_mc', inputType: "input_item" },
    //    gylx_bm: { ifdb: true, bt: false, value: "", title: '编码', dataIndex: 'gylx_bm', inputType: "input_item" },
    gylxgl: { ifdb: true, bt: false, value: "", title: '工艺路线概览', dataIndex: 'gylxgl', inputType: "input_text_item", disabled: true },
    //    gylx_qysj: { ifdb: true, bt: false, value: usenowDate(), title: '启用时间', dataIndex: 'gylx_qysj', inputType: "date_item" },
    fj_title: { ifdb: false, bt: false, value: "", title: '附件信息', dataIndex: 'fj_title', inputType: "title_item" },

    //  zyzds_mc: { ifdb: true, bt: false, value: "", title: '名称', dataIndex: 'zyzds_mc', inputType: "input_item" },
    //  zyzds_bm: { ifdb: true, bt: false, value: "", title: '编码', dataIndex: 'zyzds_bm', inputType: "input_item" },
    zyzds__bb: { customlinewidth: "23.9%", lineheight: "3.6rem", ifdb: true, bt: false, value: "", title: '作业指导书附件', dataIndex: 'zyzds__bb', inputType: "upload_fj_item" },
    //  zyzds_qysj: { ifdb: true, bt: false, value: "", title: '启用时间', dataIndex: 'zyzds_qysj', inputType: "date_item" },

    //  zjzds_title: { ifdb: false, bt: false, value: "", title: '质检指导书', dataIndex: 'zjzds_title', inputType: "title_item" },

    //  zjzds_mc: { ifdb: true, bt: false, value: "", title: '名称', dataIndex: 'zjzds_mc', inputType: "input_item" },
    //  zjzds_bm: { ifdb: true, bt: false, value: "", title: '编码', dataIndex: 'zjzds_bm', inputType: "input_item" },
    zjzds_bb: { customlinewidth: "23.9%", lineheight: "3.6rem", ifdb: true, bt: false, value: "", title: '质检指导书附件', dataIndex: 'zjzds_bb', inputType: "upload_fj_item" },
    // zjzds_qysj: { ifdb: true, bt: false, value: "", title: '启用时间', dataIndex: 'zjzds_qysj', inputType: "date_item" },

  }
  return initformdata
}



/**
 * 
 * @returns 产品档案colmun
 */
export function use_cpda_mx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "80px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '顺序', dataIndex: 'sx', inputType: "none" },

    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    {
      ifdb: true, bt: false, defalut_v: "", value: "", title: '选择产品', dataIndex: 'cpbm',
      inputType: "readonly",
      popup_maintitle: '物料档案', popup_column: [
        { title: "序号", key: "xuhao" },
        { title: "图号", key: "ggxh" },
        { title: "单位", key: "dw" },
        { title: "物料名称", key: "wlmc" },
        { title: "物料编码", key: "wlbm" },
        { title: "版本号", key: "bbh" },
        { title: "备注说明", key: "bzsm" },
      ],
      datas_key: 'datas_wlmc',
      popup_tansferarr: [
        { origin: "wlmc", target: "cpmc" },
        { origin: "wlbm", target: "cpbm" },
        { origin: "ggxh", target: "th" },
        { origin: "bbh", target: "bbh" },
      ],
      width: "8rem"
    },
    {
      ifdb: true, bt: true, width: "11rem", defalut_v: "", value: "", title: '产品名称', dataIndex: 'cpmc', inputType: "readonly",
    },
    {
      ifdb: true, bt: false, width: "11rem", defalut_v: "", value: "", title: '图号', dataIndex: 'th', inputType: "readonly",
    },

    {
      ifdb: true, bt: true, defalut_v: "", value: "", title: '版本号', dataIndex: 'bbh', inputType: "readonly",
    },

    { ifdb: true, bt: true, defalut_v: "", value: "", title: '数量', dataIndex: 'sl', inputType: "readonly" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '材料', dataIndex: 'cl', inputType: "readonly" },
    {
      ifdb: true, bt: true, defalut_v: "否", value: "否", title: '是否组件', dataIndex: 'sfzj', inputType: "readonly",
      selectdata: [{ value: '是', title: '是' }, { value: '否', title: '否' }]
    },
    {
      ifdb: true, bt: true, defalut_v: "外购", value: "外购", title: '是否自制', dataIndex: 'sfzz', inputType: "readonly",
      selectdata: [{ value: '自制', title: '自制' }, { value: '外购', title: '外购' }]
    },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '备注', dataIndex: 'bz', inputType: "readonly" },


  ]
  return colmuns
}

/**
 * 
 * @returns 工艺路线明细colmun
 */
export function use_gylx_mx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "80px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: storage.ygxm, value: "", title: 'create_by', dataIndex: 'create_by', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'mainid', dataIndex: 'mainid', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '工艺id', dataIndex: 'gyid', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '工艺名称', dataIndex: 'gymc', inputType: "readonly"
      , width: "12rem",
      popup_maintitle: '工艺', popup_column: [
        { title: "序号", key: "xuhao" },
        { title: "工艺名称", key: "gymc" },
        { title: "工艺编码", key: "gybh" },
        { title: "备注", key: "bz" },
      ],
      datas_key: 'datas_gy',
      popup_tansferarr: [
        { origin: "id", target: "gyid" },
        { origin: "gymc", target: "gymc" },
        { origin: "gybh", target: "gybm" },
        { origin: "bz", target: "bz" },
      ],
    },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '工艺编码', dataIndex: 'gybm', inputType: "readonly" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '备注', dataIndex: 'bz', inputType: "readonly" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '顺序', dataIndex: 'sx', inputType: "readonly" },


  ]
  return colmuns
}

/**
 * 
 * @returns 财务客户档案colmun
 */
export function use_cwkhda_initcolmun() {
  return [{ show: true, title: "序号", key: "xuhao", width: "4rem" },
  { show: true, title: "创建时间", key: "create_time" },
  { show: true, title: "编码", key: "bm" },
  { show: true, title: "名称", key: "mc", width: "14rem", style: { fontSize: "0.6rem" } },
  { show: true, title: "地址", key: "dz", width: "18rem", style: { fontSize: "0.6rem" } },
  { show: true, title: "联系人", key: "lxr" },
  { show: true, title: "电话", key: "dh" },

  ]
}

/**
 * 
 * @param {*} 财务客户档案formdata 
 * @returns 
 */
export function use_cwkhda_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    djxx_title: { ifdb: false, bt: false, value: "", title: '单据信息', dataIndex: 'djxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    khxx_title: { ifdb: false, bt: false, value: "", title: '客户信息', dataIndex: 'khxx_title', inputType: "title_item" },
    khlx: {
      ifdb: true, bt: true, value: "订单客户", title: '客户类型', dataIndex: 'khlx', inputType: "select_item",
      selectdata: [{ value: "订单客户", label: "订单客户" }, { value: "售后客户", label: "售后客户" }]
    },
    mc: { ifdb: true, bt: true, value: "", title: '客户名称', dataIndex: 'mc', inputType: "input_item", },
    bm: { ifdb: true, bt: true, value: "", title: '客户编码', dataIndex: 'bm', inputType: "input_number_item", },
    gngw: {
      ifdb: true, bt: true, value: "国内", title: '国内国外', dataIndex: 'gngw', inputType: "select_item",
      selectdata: [
        { value: '国内', label: "国内" }, { value: '国外', label: "国外" },]
    },
    // jc: { ifdb: true, bt: false, value: "", title: '简称', dataIndex: 'jc', inputType: "input_item", },
    // dqbm: { ifdb: true, bt: false, value: "", title: '地区编码', dataIndex: 'dqbm', inputType: "input_item", },
    // hybm: { ifdb: true, bt: false, value: "", title: '行业编码', dataIndex: 'hybm', inputType: "input_item", },
    // ssdq: { ifdb: true, bt: false, value: "", title: '所属地区', dataIndex: 'ssdq', inputType: "input_item", },
    shxx_title: { ifdb: false, bt: false, value: "", title: '收货信息', dataIndex: 'shxx_title', inputType: "title_item" },

    lxr: { ifdb: true, bt: true, value: "", title: '联系人', dataIndex: 'lxr', inputType: "input_item", },
    dh: { ifdb: true, bt: true, value: "", title: '电话', dataIndex: 'dh', inputType: "input_item", },
    dz: { ifdb: true, bt: true, value: "", title: '地址', dataIndex: 'dz', inputType: "input_text_item", },


    yhxx_title: { ifdb: false, bt: false, value: "", title: '开票信息', dataIndex: 'yhxx_title', inputType: "title_item" },
    nsrsbh: { ifdb: true, bt: false, value: "", title: '纳税人识别号', dataIndex: 'nsrsbh', inputType: "input_item", },

    khyh: { ifdb: true, bt: false, value: "", title: '开户银行', dataIndex: 'khyh', inputType: "input_item", },
    yhzh: { ifdb: true, bt: false, value: "", title: '银行账号', dataIndex: 'yhzh', inputType: "input_item", },
    yb: { ifdb: true, bt: false, value: "", title: '邮编', dataIndex: 'yb', inputType: "input_item", },


  }
  return initformdata
}


  //获取常见国家列表
  const getCommonCountries = () => {
    return [
      { label: '中国', value: '中国' },
      { label: '美国', value: '美国' },
      { label: '日本', value: '日本' },
      { label: '韩国', value: '韩国' },
      { label: '新加坡', value: '新加坡' },
      { label: '马来西亚', value: '马来西亚' },
      { label: '德国', value: '德国' },
      { label: '法国', value: '法国' },
      { label: '英国', value: '英国' },
      { label: '意大利', value: '意大利' },
      { label: '俄罗斯', value: '俄罗斯' },
      { label: '加拿大', value: '加拿大' },
      { label: '澳大利亚', value: '澳大利亚' },
      { label: '印度', value: '印度' },
      { label: '巴西', value: '巴西' },
      { label: '墨西哥', value: '墨西哥' }
    ];
  }

  //获取中国省份列表
  const getProvinces = () => {
    return [
      { label: '北京市', value: '北京市' },
      { label: '天津市', value: '天津市' },
      { label: '河北省', value: '河北省' },
      { label: '山西省', value: '山西省' },
      { label: '内蒙古自治区', value: '内蒙古自治区' },
      { label: '辽宁省', value: '辽宁省' },
      { label: '吉林省', value: '吉林省' },
      { label: '黑龙江省', value: '黑龙江省' },
      { label: '上海市', value: '上海市' },
      { label: '江苏省', value: '江苏省' },
      { label: '浙江省', value: '浙江省' },
      { label: '安徽省', value: '安徽省' },
      { label: '福建省', value: '福建省' },
      { label: '江西省', value: '江西省' },
      { label: '山东省', value: '山东省' },
      { label: '河南省', value: '河南省' },
      { label: '湖北省', value: '湖北省' },
      { label: '湖南省', value: '湖南省' },
      { label: '广东省', value: '广东省' },
      { label: '广西壮族自治区', value: '广西壮族自治区' },
      { label: '海南省', value: '海南省' },
      { label: '重庆市', value: '重庆市' },
      { label: '四川省', value: '四川省' },
      { label: '贵州省', value: '贵州省' },
      { label: '云南省', value: '云南省' },
      { label: '西藏自治区', value: '西藏自治区' },
      { label: '陕西省', value: '陕西省' },
      { label: '甘肃省', value: '甘肃省' },
      { label: '青海省', value: '青海省' },
      { label: '宁夏回族自治区', value: '宁夏回族自治区' },
      { label: '新疆维吾尔自治区', value: '新疆维吾尔自治区' },
      { label: '台湾省', value: '台湾省' },
      { label: '香港特别行政区', value: '香港特别行政区' },
      { label: '澳门特别行政区', value: '澳门特别行政区' }
    ];
  }

  //根据省份获取对应城市列表
  const getCitiesByProvince = (province) => {
    const cityMap = {
      '北京市': [{ label: '北京市', value: '北京市' }],
      '天津市': [{ label: '天津市', value: '天津市' }],
      '上海市': [{ label: '上海市', value: '上海市' }],
      '重庆市': [{ label: '重庆市', value: '重庆市' }],
      '河北省': [{ label: '石家庄市', value: '石家庄市' }, { label: '唐山市', value: '唐山市' }, { label: '秦皇岛市', value: '秦皇岛市' }, { label: '邯郸市', value: '邯郸市' },
      { label: '邢台市', value: '邢台市' }, { label: '保定市', value: '保定市' },
      { label: '张家口市', value: '张家口市' }, { label: '承德市', value: '承德市' },
      { label: '沧州市', value: '沧州市' }, { label: '廊坊市', value: '廊坊市' }, { label: '衡水市', value: '衡水市' }],
      '山西省': [{ label: '太原市', value: '太原市' }, { label: '大同市', value: '大同市' }, { label: '阳泉市', value: '阳泉市' }, { label: '长治市', value: '长治市' },
      { label: '晋城市', value: '晋城市' }, { label: '朔州市', value: '朔州市' }, { label: '晋中市', value: '晋中市' }, { label: '运城市', value: '运城市' },
      { label: '忻州市', value: '忻州市' }, { label: '临汾市', value: '临汾市' }, { label: '吕梁市', value: '吕梁市' }],
      '辽宁省': [{ label: '沈阳市', value: '沈阳市' }, { label: '大连市', value: '大连市' }, { label: '鞍山市', value: '鞍山市' }, { label: '抚顺市', value: '抚顺市' },
      { label: '本溪市', value: '本溪市' }, { label: '丹东市', value: '丹东市' }, { label: '锦州市', value: '锦州市' }, { label: '营口市', value: '营口市' },
      { label: '阜新市', value: '阜新市' }, { label: '辽阳市', value: '辽阳市' }, { label: '盘锦市', value: '盘锦市' }, { label: '铁岭市', value: '铁岭市' },
      { label: '朝阳市', value: '朝阳市' }, { label: '葫芦岛市', value: '葫芦岛市' }],
      '吉林省': [{ label: '长春市', value: '长春市' }, { label: '吉林市', value: '吉林市' }, { label: '四平市', value: '四平市' }, { label: '辽源市', value: '辽源市' },
      { label: '通化市', value: '通化市' }, { label: '白山市', value: '白山市' }, { label: '松原市', value: '松原市' }, { label: '白城市', value: '白城市' },
      { label: '延边朝鲜族自治州', value: '延边朝鲜族自治州' }],
      '黑龙江省': [{ label: '哈尔滨市', value: '哈尔滨市' }, { label: '齐齐哈尔市', value: '齐齐哈尔市' }, { label: '鸡西市', value: '鸡西市' }, { label: '鹤岗市', value: '鹤岗市' },
      { label: '双鸭山市', value: '双鸭山市' }, { label: '大庆市', value: '大庆市' }, { label: '伊春市', value: '伊春市' }, { label: '佳木斯市', value: '佳木斯市' },
      { label: '七台河市', value: '七台河市' }, { label: '牡丹江市', value: '牡丹江市' }, { label: '黑河市', value: '黑河市' }, { label: '绥化市', value: '绥化市' },
      { label: '大兴安岭地区', value: '大兴安岭地区' }],
      '福建省': [{ label: '福州市', value: '福州市' }, { label: '厦门市', value: '厦门市' }, { label: '莆田市', value: '莆田市' }, { label: '三明市', value: '三明市' },
      { label: '泉州市', value: '泉州市' }, { label: '漳州市', value: '漳州市' }, { label: '南平市', value: '南平市' }, { label: '龙岩市', value: '龙岩市' },
      { label: '宁德市', value: '宁德市' }],
      '江西省': [{ label: '南昌市', value: '南昌市' }, { label: '景德镇市', value: '景德镇市' }, { label: '萍乡市', value: '萍乡市' }, { label: '九江市', value: '九江市' },
      { label: '新余市', value: '新余市' }, { label: '鹰潭市', value: '鹰潭市' }, { label: '赣州市', value: '赣州市' }, { label: '吉安市', value: '吉安市' },
      { label: '宜春市', value: '宜春市' }, { label: '抚州市', value: '抚州市' }, { label: '上饶市', value: '上饶市' }],
      '山东省': [{ label: '济南市', value: '济南市' }, { label: '青岛市', value: '青岛市' }, { label: '淄博市', value: '淄博市' }, { label: '枣庄市', value: '枣庄市' },
      { label: '东营市', value: '东营市' }, { label: '烟台市', value: '烟台市' }, { label: '潍坊市', value: '潍坊市' }, { label: '济宁市', value: '济宁市' },
      { label: '泰安市', value: '泰安市' }, { label: '威海市', value: '威海市' }, { label: '日照市', value: '日照市' }, { label: '临沂市', value: '临沂市' },
      { label: '德州市', value: '德州市' }, { label: '聊城市', value: '聊城市' }, { label: '滨州市', value: '滨州市' }, { label: '菏泽市', value: '菏泽市' }],
      '河南省': [{ label: '郑州市', value: '郑州市' }, { label: '开封市', value: '开封市' }, { label: '洛阳市', value: '洛阳市' }, { label: '平顶山市', value: '平顶山市' },
      { label: '安阳市', value: '安阳市' }, { label: '鹤壁市', value: '鹤壁市' }, { label: '新乡市', value: '新乡市' }, { label: '焦作市', value: '焦作市' },
      { label: '濮阳市', value: '濮阳市' }, { label: '许昌市', value: '许昌市' }, { label: '漯河市', value: '漯河市' }, { label: '三门峡市', value: '三门峡市' }],
      '湖北省': [{ label: '武汉市', value: '武汉市' }, { label: '黄石市', value: '黄石市' }, { label: '十堰市', value: '十堰市' }, { label: '宜昌市', value: '宜昌市' },
      { label: '襄阳市', value: '襄阳市' }, { label: '鄂州市', value: '鄂州市' }, { label: '荆门市', value: '荆门市' }, { label: '孝感市', value: '孝感市' },
      { label: '荆州市', value: '荆州市' }, { label: '黄冈市', value: '黄冈市' }, { label: '咸宁市', value: '咸宁市' }, { label: '随州市', value: '随州市' }],
      '湖南省': [{ label: '长沙市', value: '长沙市' }, { label: '株洲市', value: '株洲市' }, { label: '湘潭市', value: '湘潭市' }, { label: '衡阳市', value: '衡阳市' },
      { label: '邵阳市', value: '邵阳市' }, { label: '岳阳市', value: '岳阳市' }, { label: '常德市', value: '常德市' }, { label: '张家界市', value: '张家界市' }],
      '广东省': [{ label: '广州市', value: '广州市' }, { label: '深圳市', value: '深圳市' }, { label: '珠海市', value: '珠海市' }, { label: '汕头市', value: '汕头市' },
      { label: '佛山市', value: '佛山市' }, { label: '韶关市', value: '韶关市' }, { label: '湛江市', value: '湛江市' }, { label: '肇庆市', value: '肇庆市' }],
      '广西壮族自治区': [{ label: '南宁市', value: '南宁市' }, { label: '柳州市', value: '柳州市' }, { label: '桂林市', value: '桂林市' }, { label: '梧州市', value: '梧州市' },
      { label: '北海市', value: '北海市' }, { label: '防城港市', value: '防城港市' }, { label: '钦州市', value: '钦州市' }, { label: '贵港市', value: '贵港市' }],
      '海南省': [{ label: '海口市', value: '海口市' }, { label: '三亚市', value: '三亚市' }],
      '四川省': [{ label: '成都市', value: '成都市' }, { label: '自贡市', value: '自贡市' }, { label: '攀枝花市', value: '攀枝花市' }, { label: '泸州市', value: '泸州市' },
      { label: '德阳市', value: '德阳市' }, { label: '绵阳市', value: '绵阳市' }, { label: '广元市', value: '广元市' }, { label: '遂宁市', value: '遂宁市' }],
      '贵州省': [{ label: '贵阳市', value: '贵阳市' }, { label: '六盘水市', value: '六盘水市' }, { label: '遵义市', value: '遵义市' }, { label: '安顺市', value: '安顺市' }],
      '云南省': [{ label: '昆明市', value: '昆明市' }, { label: '曲靖市', value: '曲靖市' }, { label: '玉溪市', value: '玉溪市' }, { label: '保山市', value: '保山市' }],
      '西藏自治区': [{ label: '拉萨市', value: '拉萨市' }],
      '陕西省': [{ label: '西安市', value: '西安市' }, { label: '宝鸡市', value: '宝鸡市' }, { label: '咸阳市', value: '咸阳市' }, { label: '渭南市', value: '渭南市' }],
      '甘肃省': [{ label: '兰州市', value: '兰州市' }, { label: '嘉峪关市', value: '嘉峪关市' }, { label: '金昌市', value: '金昌市' }, { label: '白银市', value: '白银市' }],
      '青海省': [{ label: '西宁市', value: '西宁市' }],
      '宁夏回族自治区': [{ label: '银川市', value: '银川市' }],
      '新疆维吾尔自治区': [{ label: '乌鲁木齐市', value: '乌鲁木齐市' }, { label: '克拉玛依市', value: '克拉玛依市' }],
      '台湾省': [{ label: '台北市', value: '台北市' }],
      '香港特别行政区': [{ label: '香港特别行政区', value: '香港特别行政区' }],
      '澳门特别行政区': [{ label: '澳门特别行政区', value: '澳门特别行政区' }],
      '江苏省': [{ label: '南京市', value: '南京市' }, { label: '无锡市', value: '无锡市' }, { label: '徐州市', value: '徐州市' }, { label: '常州市', value: '常州市' },
      { label: '苏州市', value: '苏州市' }, { label: '南通市', value: '南通市' }, { label: '连云港市', value: '连云港市' }, { label: '淮安市', value: '淮安市' }],
      '浙江省': [{ label: '杭州市', value: '杭州市' }, { label: '宁波市', value: '宁波市' }, { label: '温州市', value: '温州市' }, { label: '嘉兴市', value: '嘉兴市' },
      { label: '湖州市', value: '湖州市' }, { label: '绍兴市', value: '绍兴市' }, { label: '金华市', value: '金华市' }, { label: '衢州市', value: '衢州市' },
      { label: '舟山市', value: '舟山市' }, { label: '台州市', value: '台州市' }, { label: '丽水市', value: '丽水市' }],
      '安徽省': [{ label: '合肥市', value: '合肥市' }, { label: '芜湖市', value: '芜湖市' }, { label: '蚌埠市', value: '蚌埠市' }, { label: '淮南市', value: '淮南市' },
      { label: '马鞍山市', value: '马鞍山市' }, { label: '淮北市', value: '淮北市' }, { label: '铜陵市', value: '铜陵市' }, { label: '安庆市', value: '安庆市' },
      { label: '黄山市', value: '黄山市' }, { label: '滁州市', value: '滁州市' }, { label: '阜阳市', value: '阜阳市' }, { label: '宿州市', value: '宿州市' }],
      '内蒙古自治区': [{ label: '呼和浩特市', value: '呼和浩特市' }, { label: '包头市', value: '包头市' }, { label: '乌海市', value: '乌海市' },
      { label: '赤峰市', value: '赤峰市' }, { label: '通辽市', value: '通辽市' }, { label: '鄂尔多斯市', value: '鄂尔多斯市' }, { label: '呼伦贝尔市', value: '呼伦贝尔市' }],
    };
    return cityMap[province] || [];
  };